This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Testing Exporter
[perl5.git] / t / lib / env.t
old mode 100644 (file)
new mode 100755 (executable)
index 5a82207..ff6af2e
@@ -7,12 +7,19 @@ BEGIN {
 
 BEGIN {
        $ENV{FOO} = "foo";
+       $ENV{BAR} = "bar";
 }
 
-use Env qw(FOO);
+use Env qw(FOO $BAR);
 
 $FOO .= "/bar";
+$BAR .= "/baz";
+
+print "1..2\n";
 
-print "1..1\n";
 print "not " if $FOO ne 'foo/bar';
 print "ok 1\n";
+
+print "not " if $BAR ne 'bar/baz';
+print "ok 2\n";
+