freebsd-nq/contrib/perl5/t/lib/env.t
2000-06-25 11:04:01 +00:00

26 lines
302 B
Perl
Executable File

#!./perl
BEGIN {
chdir 't' if -d 't';
unshift @INC, '../lib';
}
BEGIN {
$ENV{FOO} = "foo";
$ENV{BAR} = "bar";
}
use Env qw(FOO $BAR);
$FOO .= "/bar";
$BAR .= "/baz";
print "1..2\n";
print "not " if $FOO ne 'foo/bar';
print "ok 1\n";
print "not " if $BAR ne 'bar/baz';
print "ok 2\n";