Perl-Sensitive Sunglasses | |
PerlMonks |
Re: our scope and packagesby tilly (Archbishop) |
on Aug 28, 2008 at 23:01 UTC ( [id://707623]=note: print w/replies, xml ) | Need Help?? |
Your problem is that Perl scopes according to packages. It is not that %prod is in a different file. It is that it is in a different package. The cheesy solution is to just make %prod in your current package be the copy in the root package, which is called main:
In Section
Seekers of Perl Wisdom
|
|