p4raw-id: //depot/perl@33097
package SelfLoader;
use 5.008;
use strict;
-our $VERSION = "1.13_03";
+our $VERSION = "1.15";
# The following bit of eval-magic is necessary to make this work on
# perls < 5.009005.
}
# Try to read from the data file handle
-my $foodata = <Foo::DATA>;
-close Foo::DATA;
-if (defined $foodata) {
- print "not ok 18 # $foodata\n";
-} else {
- print "ok 18\n";
+{
+ local $SIG{__WARN__} = sub { my $warn = shift; };
+ my $foodata = <Foo::DATA>;
+ close Foo::DATA;
+ if (defined $foodata) {
+ print "not ok 18 # $foodata\n";
+ } else {
+ print "ok 18\n";
+ }
}
# Check that __END__ DATA is honoured