Plan 9 from Bell Labs’s /usr/web/sources/contrib/gabidiaz/root/sys/src/cmd/perl/lib/FindBin.t

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


#!./perl

BEGIN {
    # Can't chdir in BEGIN before FindBin runs, as it then can't find us.
    @INC = -d 't' ? 'lib' : '../lib';
}

print "1..1\n";

use FindBin qw($Bin);

print "# $Bin\n";

if ($^O eq 'MacOS') {
    print "not " unless $Bin =~ m,:lib:$,;
} else {
    print "not " unless $Bin =~ m,[/.]lib\]?$,;
}
print "ok 1\n";

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to [email protected].