The stupid question is the question not asked | |
PerlMonks |
Re^2: help with a regexby Athanasius (Archbishop) |
on Feb 02, 2013 at 03:27 UTC ( [id://1016637]=note: print w/replies, xml ) | Need Help?? |
You should print $_ instead Or, just add the /r modifier to the substitution:
Output:
From s/PATTERN/REPLACEMENT/msixpodualgcer in Regexp Quote Like Operators: r Return substitution and leave the original string untouched. Hope that helps,
In Section
Seekers of Perl Wisdom
|
|