Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
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 perusing the Monastery: (15)
As of 2015-07-03 07:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (48 votes), past polls