This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
test harness
[perl5.git] / lib / Env / array.t
CommitLineData
1a3850a5
GA
1#!./perl
2
3BEGIN {
4 chdir 't' if -d 't';
20822f61 5 @INC = '../lib';
1a3850a5
GA
6}
7
8BEGIN {
9 $ENV{FOO} = "foo";
2675e62c 10 $ENV{BAR} = "bar";
1a3850a5
GA
11}
12
2675e62c 13use Env qw(FOO $BAR);
1a3850a5
GA
14
15$FOO .= "/bar";
2675e62c
GS
16$BAR .= "/baz";
17
18print "1..2\n";
1a3850a5 19
1a3850a5
GA
20print "not " if $FOO ne 'foo/bar';
21print "ok 1\n";
2675e62c
GS
22
23print "not " if $BAR ne 'bar/baz';
24print "ok 2\n";
25