|
|
|
Your skill will accomplish what the force of many cannot |
|
| PerlMonks |
Re: (??{ code }) versus (?PARNO) for recursive regular expressionsby ikegami (Pope) |
| on Mar 25, 2011 at 22:32 UTC ( #895608=note: print w/ replies, xml ) | Need Help?? |
|
That's not true. Variable declarations have always taken effect in the statement following the one containing the declaration. Perhaps you weren't using lexical ("my") variables (or strict) "5+ years ago". Unrelated, don't use lexicals from outside the pattern inside of (?{ ... }), (??{ ... }) and anything similar.
Use a package variable instead.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||||