in reply to Re: Determining which pattern matched
in thread Determining which pattern matched
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.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: Determining which pattern matched
by rubasov (Friar) on Apr 05, 2010 at 22:42 UTC | |
by ikegami (Patriarch) on Apr 06, 2010 at 00:24 UTC |
In Section
Seekers of Perl Wisdom