The old adage on regular expressions

| September 5, 2011

A co-worker is fond of saying, “You have a problem so you solve it with a regular expression. Now you have two problems.” Regular expressions are powerful tools but they can easily cause unforeseen complications. The script I’ve been trying to improve contains a section for stripping HTML. It uses HTML::Strip to do this but […]

Let’s take the shortcut

| September 5, 2011

In my continuing adventures with legacy code I’ve come across a couple mistakes that I can only figure came from someone who didn’t really know the language. I have to extract information from several large gzipped files. These files will be filtered for specific IDs and the results kept in a new file. A pretty […]