By placing the use strict pragma at the beginning of your code (as the first line after the "shebang" which points to the perl executable). perl can perform some useful optimizations which can prove beneficial with regard to execution speed, memory management, etc.
~Caitlin
Just a simple suggestion: next time, you can use pastebin to paste your code. http://pastebin.com/
thank you very much