I'm sorry to rain on your parade, mr. Anonymous Monk, but Perl is sometimes not the best solution for a problem. Yes, this is a place where Perl is discussed, but it's also a place where people come to have their problems solved. In this case, Jeffa's solution will probably do wonders, but why launch a bulky Perl interpreter, when you have something like sed at your finger tips?
Am I allowed to post non-Perl solutions to "problems" on here anyway? If not, please accept my sincere apologies.
| [reply] |