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"; }
In reply to Re: packages within the same file.
by bobn
in thread packages within the same file.
by habit_forming
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |