From: "Paul Marquess" <paul_marquess@yahoo.co.uk>
Message-Id: <AIEAJICLCBDNAAOLLOKLEEHNDOAA.paul_marquess@yahoo.co.uk>
p4raw-id: //depot/perl@14953
@INC = '../lib';
}
-print "1..27\n";
+print "1..28\n";
my $i = 1;
eval "use 5.000"; # implicit semicolon
}
print "ok ",$i++,"\n";
}
+
+
+{
+ # Regression test for patch 14937:
+ # Check that a .pm file with no package or VERSION doesn't core.
+ open F, ">xxx.pm" or die "Cannot open xxx.pm: $!\n";
+ print F "1;\n";
+ close F;
+ eval "use lib '.'; use xxx 3;";
+ unless ($@ =~ /^xxx defines neither package nor VERSION--version check failed at/) {
+ print "not ";
+ }
+ print "ok ",$i++,"\n";
+ unlink 'xxx.pm';
+}