From: Rafael Garcia-Suarez Date: Sun, 26 Oct 2003 14:59:53 +0000 (+0000) Subject: Fix backward-compatibility issues in if.pm. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=0d7509de16bc60421fced9c9069b224cfd591b45;p=p5sagit%2Fp5-mst-13.2.git 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;