This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
A slightly tweaked patch to perldelta from Craig Berry acknowledging the
[perl5.git] / lib / FindBin.t
old mode 100755 (executable)
new mode 100644 (file)
index ebca15b..36e142c
@@ -5,11 +5,16 @@ BEGIN {
     @INC = -d 't' ? 'lib' : '../lib';
 }
 
-print "1..1\n";
+print "1..2\n";
 
 use FindBin qw($Bin);
 
 print "# $Bin\n";
-
 print "not " unless $Bin =~ m,[/.]lib\]?$,;
 print "ok 1\n";
+
+$0 = "-";
+FindBin::again();
+
+print "not " if $FindBin::Script ne "-";
+print "ok 2\n";