go ahead... be a heretic | |
PerlMonks |
Re: Re: Regex Capturing: Is this a bug or a feature?by shotgunefx (Parson) |
on Sep 28, 2002 at 15:10 UTC ( [id://201451]=note: print w/replies, xml ) | Need Help?? |
The code above is stripped down to an example. I do find this behaviour quite suprising and very NWIM. I would go so far to say that it's documentated incorrectly (at the very least, poorly). Both are described as dynamic scoping.
Looking at perlsub and local() This is known as dynamic scoping. Lexical scoping is ... -Lee "To be civilized is to deny one's nature."
In Section
Seekers of Perl Wisdom
|
|