Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Abandon "our" declarations (was: Re: our scope and packages)by Narveson (Chaplain) |
on Aug 29, 2008 at 05:00 UTC ( [id://707661]=note: print w/replies, xml ) | Need Help?? |
There seems to be very little on the function "our" in manuals and tutorials. This observation is correct, and that's because there are few if any projects that are not improved by a global s/our/my/. Of course that will break your existing system of letting everybody share the same global variable. This is generally considered a good thing. In the file where you declare and populate my %prod, follow it up with an offer to share:
and now let client files say
In Section
Seekers of Perl Wisdom
|
|