Syntactic Confectionery Delight | |
PerlMonks |
Re^2: Determining which pattern matchedby ikegami (Patriarch) |
on Apr 05, 2010 at 22:23 UTC ( [id://832934]=note: print w/replies, xml ) | Need Help?? |
Use local our instead of my for variables declared outside of a (?{}) and (??{}) but used inside of them. It's much safer. Your second snippet won't work if it's moved into a function, for example.
In Section
Seekers of Perl Wisdom
|
|