Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
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 rifling through the Monastery: (8)
As of 2014-09-17 22:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (100 votes), past polls