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

(Ovid) Re: The value of $0 is your program...

by Ovid (Cardinal)
on Mar 20, 2001 at 16:51 UTC ( #65683=note: print w/ replies, xml ) Need Help??


in reply to The value of $0 is your program...

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.


Comment on (Ovid) Re: The value of $0 is your program...
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (12)
As of 2014-10-02 14:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    What is your favourite meta-syntactic variable name?














    Results (61 votes), past polls