summaryrefslogtreecommitdiff
path: root/lib/if.pm
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@gmail.com>2003-10-26 14:59:53 +0000
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2003-10-26 14:59:53 +0000
commit0d7509de16bc60421fced9c9069b224cfd591b45 (patch)
tree9887d6c6390383c8d3c26f9d006e2375ba03fc63 /lib/if.pm
parentea4fd6daa1f959fe03730a32d225d60585be9797 (diff)
downloadperl-0d7509de16bc60421fced9c9069b224cfd591b45.tar.gz
Fix backward-compatibility issues in if.pm.
p4raw-id: //depot/perl@21540
Diffstat (limited to 'lib/if.pm')
-rw-r--r--lib/if.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/if.pm b/lib/if.pm
index 6574d978bb..9e140c37d6 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;