in reply to Perl Code Runs Extremely Slow

There are so many performance problems in this code that it's kind of hard to know where to begin! Here's a few that jump out right away:

-sam