develooper Front page | perl.beginners | Postings from August 2009

Variable to refer to program name

Thread Next
August 21, 2009 11:52
Variable to refer to program name
Message ID:
Hi All,

I am about as noob as you can get so please forgive my complete naivete.

I have jumped into the world of perl with both feet and have gotten hung 
up on a seemingly 
trivial matter.  In *NIX shell scripting, the variable $0 refers to the 
zeroth command line parameter,
i.e., the program itself.  I would like to use something like this in my 
perl scripts.  Is there an 
equivalent to this in perl? 


Paul Feeny

Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About