Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
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 making s'mores by the fire in the courtyard of the Monastery: (5)
As of 2014-08-31 05:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (294 votes), past polls