summaryrefslogtreecommitdiff
path: root/lib/SelfLoader.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/SelfLoader.pm')
-rw-r--r--lib/SelfLoader.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/SelfLoader.pm b/lib/SelfLoader.pm
index 294b6bc6b0..ad58f6e8da 100644
--- a/lib/SelfLoader.pm
+++ b/lib/SelfLoader.pm
@@ -2,7 +2,7 @@ package SelfLoader;
require Exporter;
@ISA = qw(Exporter);
@EXPORT = qw(AUTOLOAD);
-$VERSION = "1.0905";
+$VERSION = "1.10";
sub Version {$VERSION}
$DEBUG = 0;
@@ -59,7 +59,7 @@ sub _load_stubs {
print STDERR "SelfLoader::load_stubs($callpack)\n" if $DEBUG;
croak("$callpack doesn't contain an __DATA__ token")
- unless fileno($fh);
+ unless defined fileno($fh);
$Cache{"${currpack}::<DATA"} = 1; # indicate package is cached
local($/) = "\n";