This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
perluniprops.pod: nits
[perl5.git] / lib / FindBin.t
... / ...
CommitLineData
1#!./perl
2
3BEGIN {
4 # Can't chdir in BEGIN before FindBin runs, as it then can't find us.
5 @INC = -d 't' ? 'lib' : '../lib';
6}
7
8print "1..2\n";
9
10use FindBin qw($Bin);
11
12print "# $Bin\n";
13print "not " unless $Bin =~ m,[/.]lib\]?$,;
14print "ok 1\n";
15
16$0 = "-";
17FindBin::again();
18
19print "not " if $FindBin::Script ne "-";
20print "ok 2\n";