X-Git-Url: http://git.vpit.fr/?p=perl%2Fmodules%2Findirect.git;a=blobdiff_plain;f=lib%2Findirect.pm;h=ff3d34e02b2e8ad8f608f9b22d715a3dcfcad414;hp=85353e2646ae6318d6739d012595c86652d4dc30;hb=c88f53009246bbc1af1789f746acc5d841fc0ae8;hpb=d6fe229b7af0a2a4b8c7f5fd25a27825ccc40653 diff --git a/lib/indirect.pm b/lib/indirect.pm index 85353e2..ff3d34e 100644 --- a/lib/indirect.pm +++ b/lib/indirect.pm @@ -29,8 +29,11 @@ BEGIN { use indirect; my $y = new Pear; # ok { - no indirect hook => sub { die "You really wanted $_[0]\->$_[1] at $_[2]:$_[3]" }; - my $z = new Pineapple 'fresh'; # croaks 'You really wanted Pineapple->new at blurp.pm:13' + no indirect hook => sub { + die "You really wanted $_[0]\->$_[1] at $_[2]:$_[3]" + }; + # croaks 'You really wanted Pineapple->new at blurp.pm:13' + my $z = new Pineapple 'fresh'; } } try { ... }; # warns