This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
[REPATCH] Re: [PATCH File::Find] use warnings::register
[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..1\n";
9
10use FindBin qw($Bin);
11
12print "# $Bin\n";
13
14print "not " unless $Bin =~ m,[/.]lib\]?$,;
15print "ok 1\n";