Not that this really matters, but in line 1 of your code you have: #!/usr/bin/perl
the shebang line is used to tell perl where to look for perl on your system.
On a windows system, mine is: #!/d:/perl -w
The -w is added to turn on warnings. It can be VERY helpful.
"The social dynamics of the net are a direct consequence of the fact that nobody has yet developed a Remote Strangulation Protocol." -- Larry
Wall