Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw

The value of $0 is your program...

by petral (Curate)
on Mar 19, 2001 at 23:51 UTC ( #65520=perlmeditation: print w/ replies, xml ) Need Help??

...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".


Comment on The value of $0 is your program...
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.


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

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlmeditation [id://65520]
Approved by root
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (1)
As of 2016-02-09 02:13 GMT
Find Nodes?
    Voting Booth?

    How many photographs, souvenirs, artworks, trophies or other decorative objects are displayed in your home?

    Results (297 votes), past polls