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


in reply to Re^2: Processing ARGV
in thread Processing ARGV

You may want to try
perl -e 'print $_, $/ for @ARGV' 1 2 3 4 5 #which prints #1 #2 #3 #4 #5
in order to assure yourself that perl has been installed correctly.
And of course - see what `which perl` returns in case that the script works fine.


Replies are listed 'Best First'.
Re^4: Processing ARGV
by kmullin (Acolyte) on Dec 05, 2007 at 19:08 UTC

    I'm told that with a bad shebang, it uses /bin/sh, which is the ksh around here, so that explains that.

    I now have my code working. Thanks for your help.