Problems? Is your data what you think it is? | |
PerlMonks |
Re: Formatting Strings Without Interpolating Whitespaceby Xiong (Hermit) |
on Jan 19, 2012 at 21:51 UTC ( [id://948852]=note: print w/replies, xml ) | Need Help?? |
Yes. Not complex.
This code is totally untested and may or may not work, or may explode, scattering wheels and cogs across your bench. You may want to fool with the regexes to handle spaces on either side of your tabs and newlines of either persuation. But this should do the trick. I assume no responsibility for the result.
I'm not the guy you kill, I'm the guy you buy. —Michael Clayton
In Section
Seekers of Perl Wisdom
|
|