perl: what is the variable holding the executing script file name
- From: Eben Yong <eben_yong@xxxxxxxx>
- Date: Mon, 30 Jan 2006 10:46:50 -0500
Hi Folks, Another novice PERL scripter here again. Today's question(s):
What is the PERL variable (constant?) which holds the filename of the
currently executing script? And is there one variable that holds only the
filename, and another one that holds the filename including the full path?
So, for example, if I am in /cgi/perlscripts: perl myfile.pl
What variable would return '/cgi/perlscripts/myfile.pl'?
And what variable would return only 'myfile.pl'?
Thanks as always!
Eben Yong
eben_yong@xxxxxxxx
* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *
.
- Follow-Ups:
- Re: perl: what is the variable holding the executing script file name
- From: donna garverick
- Re: perl: what is the variable holding the executing script file name
- From: Dave Oksner
- Re: perl: what is the variable holding the executing script file name
- Prev by Date: <plug> HP 3000 Rentals
- Next by Date: OT: If you're getting bored with SETI
- Previous by thread: <plug> HP 3000 Rentals
- Next by thread: Re: perl: what is the variable holding the executing script file name
- Index(es):
Relevant Pages
|