HP3000-L Archives

January 2006, Week 5

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Eben Yong <[log in to unmask]>
Reply To:
Eben Yong <[log in to unmask]>
Date:
Mon, 30 Jan 2006 10:46:50 -0500
Content-Type:
text/plain
Parts/Attachments:
text/plain (17 lines)
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
[log in to unmask]

* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *

ATOM RSS1 RSS2