I copied and pasted your code and it worked.
A few things to try:
- Start with a new file, and paste the code above into it, then 'chmod u+x' and './test.pl'. That worked for me.
- Please check for the silly things: paths, filenames, current directory location, etc. These things get even the best.
- If all else fails, make sure you aren't using the wrong location for your perl executable.
There isn't much else to try, I think.
J. J. Horner
Linux, Perl, Apache, Stronghold, Unix
jhorner@knoxlug.org http://www.knoxlug.org