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

Variable to refer to program name

Thread Next
From:
pdfeeny
Date:
August 21, 2009 11:52
Subject:
Variable to refer to program name
Message ID:
OFF18121FD.DA3FD479-ON85257619.005FBCBA-85257619.0067A7BF@aep.com
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? 


Thanks,

Paul Feeny


Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About