in reply to packages within the same file.
You clould get around this with curlies:
Note that I may not have done what you meant to do with $barour $bar; { package Foo; $bar = 16; my $foo = 15; } { package main; $bar = = "bar\n"; my $foo = "foo\n"; print "bar = $bar\n"; print "foo = $foo\n"; }
|
|---|