in reply to Processing ARGV

It seems your perl binary is in fact a zsh  :) — at least, if I change the shebang line in your script to #!/bin/zsh -w I do get similar garbage output on my box:

$ ./655145.pl Start of testARGV.pl ./655145.pl:3: command not found: 0 ./655145.pl:5: unknown file attribute

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

    Wow, so your bringing my version of perl into question. I have found 3 versions of perl on our system, and perhaps ther are more, but I get three different responses to the -v option. When I run:

    /apollo/env/fulfillmentCenter/var/apps/perl -v

    I get

    This is perl, v5.8.8 built for Linux-2.4c2.3-i686-64int + Copyright 1987-2006, Larry Wall + Perl may be copied only under the terms of either the Artistic License + or the GNU General Public License, which may be found in the Perl 5 source ki +t. + Complete documentation for Perl, including FAQ lists, should be found +on this system using "man perl" or "perldoc perl". If you have access to + the Internet, point your browser at http://www.perl.org/, the Perl Home Pa +ge.

    and when I run

    /usr/bin/perl -v

    I get

    This is perl, v5.8.0 built for i386-linux-thread-multi (with 1 registered patch, see perl -V for more detail) Copyright 1987-2002, Larry Wall Perl may be copied only under the terms of either the Artistic License + or the GNU General Public License, which may be found in the Perl 5 source ki +t. Complete documentation for Perl, including FAQ lists, should be found +on this system using `man perl' or `perldoc perl'. If you have access to + the Internet, point your browser at http://www.perl.com/, the Perl Home Pa +ge.

    and when I run the version that is in my perl script:

    /opt/third-party/bin/perl -v

    I get

    This is perl, v5.6.0 built for Linux-2.4c2.3-i686 Copyright 1987-2000, Larry Wall Perl may be copied only under the terms of either the Artistic License + or the GNU General Public License, which may be found in the Perl 5.0 source +kit. Complete documentation for Perl, including FAQ lists, should be found +on this system using `man perl' or `perldoc perl'. If you have access to + the Internet, point your browser at http://www.perl.com/, the Perl Home Pa +ge.

    Which is not even the latest version. I'm going to my internal people on this one.