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
$^H{+(__PACKAGE__)} = _tag($hook);
}
- ();
+ return;
}
=head2 C<import>
sub import {
$^H |= 0x00020000;
$^H{+(__PACKAGE__)} = _tag(undef);
- ();
+
+ return;
}
=head1 FUNCTIONS