|
|
| XP is just a number | |
| PerlMonks |
Re^2: Bug or feature? s/// and the g optionby Belgarion (Chaplain) |
| on Oct 14, 2007 at 16:17 UTC ( [id://644764]=note: print w/replies, xml ) | Need Help?? |
|
Interesting. So a failed match will clear the $1 variable.
I'm still a little stumped by Marco's original example:
That fails. But remove the "i" in the substitution and $1 is defined. Why would case-insensitive make any difference? --rjk
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||||||||