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. :-/
In reply to Re^2: these aren't locals, but they seem to act like it
by argv
in thread these aren't locals, but they seem to act like it
by argv
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |