in reply to Re: these aren't locals, but they seem to act like it
in thread these aren't locals, but they seem to act like it
you are accessing a global (i.e. package) variable named $flags, not a lexical variable.
I see... I was under the mistaken idea that perl would dereference $$var up the scoping levels till it found a match, and only use global/package names as last resort.
It'd be sure nice to have such a feature. :-/
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: these aren't locals, but they seem to act like it
by bart (Canon) on Mar 12, 2007 at 11:43 UTC | |
|
Re^3: these aren't locals, but they seem to act like it
by chromatic (Archbishop) on Mar 11, 2007 at 21:03 UTC | |
|
Re^3: these aren't locals, but they seem to act like it
by Anonymous Monk on Mar 12, 2007 at 04:17 UTC |