http://www.perlmonks.org?node_id=55786


in reply to use strict;

If 'use' and 'my' are not recognized, then you're using perl4. The #! line in your script is pointing to a very old version of perl.

Type which perl at the command line, since your script works with that one, and change your #! line accordingly.