Problems? Is your data what you think it is? | |
PerlMonks |
Re^2: ?: and saving backreferencesby ikegami (Patriarch) |
on Dec 06, 2006 at 06:10 UTC ( [id://588038]=note: print w/replies, xml ) | Need Help?? |
Did you run the code the OP posted? Since at least 5.6.1, the $1 set by the regexp inside the if is no longer in scope outside the if. The following illustrates this clearly.
This is documented in perlvar.
In Section
Meditations
|
|