With regard to your second question, no matter what anyone else might say, using regular expressions to solve a given problem is never a bad thing, and surely nothing one should be ashamed of, either; regular expressions are just another tool that perl gives you to help you solve your problems, and there is nothing wrong with using it, even when other solutions are available - There Is More Than One Way To Do It.