This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
More standard library test scripts
[perl5.git] / t / lib / env.t
CommitLineData
1a3850a5
GA
1#!./perl
2
3BEGIN {
4 chdir 't' if -d 't';
5 @INC = '../lib';
6}
7
8BEGIN {
9 $ENV{FOO} = "foo";
10}
11
12use Env qw(FOO);
13
14$FOO .= "/bar";
15
16print "1..1\n";
17print "not " if $FOO ne 'foo/bar';
18print "ok 1\n";