summaryrefslogtreecommitdiff
path: root/lib/AutoLoader.pm
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>1999-07-26 03:15:33 +0000
committerGurusamy Sarathy <gsar@cpan.org>1999-07-26 03:15:33 +0000
commit265f5c4a1b0b933305c553dbf2bf285c59261bc3 (patch)
treebf6d8792c6d0bb8807b4400b4a22f1233709b7c7 /lib/AutoLoader.pm
parent94672f70d8cd80d85af601db230d5a82be7c7f28 (diff)
downloadperl-265f5c4a1b0b933305c553dbf2bf285c59261bc3.tar.gz
INSTALL =~ s/5.006/5.6/; delay loading Errno until needed
(%! has the necessary magic); misc typos p4raw-id: //depot/perl@3754
Diffstat (limited to 'lib/AutoLoader.pm')
-rw-r--r--lib/AutoLoader.pm3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/AutoLoader.pm b/lib/AutoLoader.pm
index 1ca3b14520..66c764f9d8 100644
--- a/lib/AutoLoader.pm
+++ b/lib/AutoLoader.pm
@@ -219,14 +219,13 @@ lines:
use AutoLoader;
use Carp;
- use Errno;
sub AUTOLOAD {
my $sub = $AUTOLOAD;
(my $constname = $sub) =~ s/.*:://;
my $val = constant($constname, @_ ? $_[0] : 0);
if ($! != 0) {
- if ($!{EINVAL} || $! =~ /Invalid/) {
+ if ($! =~ /Invalid/ || $!{EINVAL}) {
$AutoLoader::AUTOLOAD = $sub;
goto &AutoLoader::AUTOLOAD;
}