[sf-perl] Scope of a variable

Fred Moyer fred at redhotpenguin.com
Thu Mar 8 11:53:48 PST 2007


nheller at silcon.com wrote:
> I'm trying to create a variable that is visible in multiple namespaces.
> I tried declaring the variable using "our".
> With use strict in effect, the code seems to treat the variable as a local
> in each place that it's used.  IOW, it doesn't hold value from one
> namespace to the next.
> Can anybody tell me where I'm going wrong?

Can you show us the code which demonstrates what you're trying to 
accomplish?


More information about the SanFrancisco-pm mailing list