Problems? Is your data what you think it is? | |
PerlMonks |
Re: Find the full path of the script at run timeby data64 (Chaplain) |
on Mar 13, 2003 at 06:12 UTC ( [id://242599]=note: print w/replies, xml ) | Need Help?? |
I usually use the below on ActiveState perl. Although I believe it also works on Linux.
You could leave out the "use English" and replace $PROGRAM_NAME with $0 Update:There is an implicit assumption in the above code, that you are not talking about a CGI script.You should also look at How do I get the full path to the script executing? data64
In Section
Seekers of Perl Wisdom
|
|