When you're running perl script.pl you are using the version of Perl from your path. This seems to be fine.
When running ./script.pl you're using the
version in /usr/contrib/bin/perl. Looks like
that's Perl version 4. to confirm this type
/usr/contrib/bin/perl -v at your command
line.
To fix it, find out which version of Perl is on your path by typing which perl and replace the /usr/contrib/bin/perl in your script with the results of that command.
--
"Perl makes the fun jobs fun
and the boring jobs bearable" - me
In reply to Re: Re: use strict;
by davorg
in thread use strict;
by snowrider
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |