more useful options | |
PerlMonks |
Re: how to remove empty pipe delimiters in a line which doesn't contain any databy Your Mother (Archbishop) |
on Oct 08, 2015 at 14:44 UTC ( [id://1144178]=note: print w/replies, xml ) | Need Help?? |
You got pretty much all the right answers in all the good idioms already. But it sounds to me like you are breaking your data. The placement at least once corresponded to some sort of meaningful column, unless the original dev was a complete jackass. So you will be removing implicit meaning and if there are data anywhere in the mostly empty columns you'll end up sorry about the "cleaning" you're attempting. Update: s/DERP/you're/
In Section
Seekers of Perl Wisdom
|
|