From: Rafael Garcia-Suarez Date: Sun, 26 Oct 2003 14:59:53 +0000 (+0000) Subject: Fix backward-compatibility issues in if.pm. X-Git-Tag: perl-5.9.1~605 X-Git-Url: https://perl5.git.perl.org/perl5.git/commitdiff_plain/0d7509de16bc60421fced9c9069b224cfd591b45 Fix backward-compatibility issues in if.pm. p4raw-id: //depot/perl@21540 --- diff --git a/lib/if.pm b/lib/if.pm index 6574d97..9e140c3 100644 --- a/lib/if.pm +++ b/lib/if.pm @@ -1,6 +1,6 @@ package if; -our $VERSION = '0.03'; +$VERSION = '0.04'; sub work { my $method = shift() ? 'import' : 'unimport'; @@ -8,7 +8,7 @@ sub work { my $p = $_[0]; # PACKAGE (my $file = "$p.pm") =~ s!::!/!g; - require $file or die; + require $file; my $m = $p->can($method); goto &$m if $m;