There's more than one way to do things | |
PerlMonks |
Re^3: Substitution backreference woesby LanX (Saint) |
on Jan 24, 2015 at 13:17 UTC ( [id://1114362]=note: print w/replies, xml ) | Need Help?? |
yeah sorry I wasn't able to test from Android, the problem is that the substitution part of s/// is supposed to be a literal. Otherwise you have to apply the /e eval modifiers.
Please note that \1 is somehow deprecated in the substitution part and will cause warnings. Its only legitimate use is in the match part for backreference.
In Section
Seekers of Perl Wisdom
|
|