in reply to Regex Capturing: Is this a bug or a feature?
As for the "localization", it's more like "scope-limited copy-on-write". If you're in an inner scope and you change $1, the effect doesn't propogate to an outer scope. However, if you merely access it, you get the inherited outer value.
-- Randal L. Schwartz, Perl hacker
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: •Re: Regex Capturing: Is this a bug or a feature?
by shotgunefx (Parson) on Sep 28, 2002 at 21:08 UTC | |
by Dog and Pony (Priest) on Sep 30, 2002 at 09:25 UTC | |
by shotgunefx (Parson) on Sep 30, 2002 at 09:37 UTC |