This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
$attributes::VERSION++ following change 33985.
[perl5.git] / lib / FindBin.t
index 80ac811..be6f58c 100755 (executable)
@@ -5,7 +5,7 @@ BEGIN {
     @INC = -d 't' ? 'lib' : '../lib';
 }
 
-print "1..1\n";
+print "1..2\n";
 
 use FindBin qw($Bin);
 
@@ -17,3 +17,9 @@ if ($^O eq 'MacOS') {
     print "not " unless $Bin =~ m,[/.]lib\]?$,;
 }
 print "ok 1\n";
+
+$0 = "-";
+FindBin::again();
+
+print "not " if $FindBin::Script ne "-";
+print "ok 2\n";