Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

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

p

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

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (7)
As of 2014-07-12 21:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (241 votes), past polls