After far too many hours work over the last four days, a contender has emerged for my favourite use of Perl, with a close contender for second place.
Helping me sort out bunches of
- Windows -> unix challenged muppets :
perl -pi -e 's/\r//g;' *html
- Muppets from the school of hyper-tabfrenzied-indentation :
perl -pi -e 's/\t/ /g;' *html