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

...which is not the same thing as the value of your program is $0.

Though that may very well be the price -- "under the same terms as perl itself".

p

Replies are listed 'Best First'.
(Ovid) Re: The value of $0 is your program...
by Ovid (Cardinal) on Mar 20, 2001 at 16:51 UTC
    Heh. Nice humor.

    $0 is actually something that trips up a lot of C programmers who start using Perl. They expect $ARGV[0] to hold the name of the program and then pull their hair out trying to figure out why their scripts fail.

    Cheers,
    Ovid

    Join the Perlmonks Setiathome Group or just click on the the link and check out our stats.