Just another Perl shrine | |
PerlMonks |
Re: Can this be a 1 line or simpler regex?by IndyZ (Friar) |
on Apr 05, 2003 at 07:28 UTC ( [id://248268]=note: print w/replies, xml ) | Need Help?? |
This works: s/([\t\n\r\f])/%m=("\t","\\t","\n","\\n","\r","\\r","\f","\\f");$m{$1}/ge;
but it just feels dirty.
In Section
Seekers of Perl Wisdom
|
|