|Welcome to the Monastery|
Re: Directories Helpby themage (Friar)
|on Aug 25, 2008 at 14:37 UTC||Need Help??|
I presume that your question is on how to get the path to the scripts.
You have two ways to get it. The first is using $0, that will give you the path to the current perl script, se second is using use Find::Bin.
If you choose to use $0:
$path will now have the path to the directory where your perl script is.
Note, however, that if you chdir inside you perl script $0 may not be a valid path to you perl script, once it may be relative to you initial path.
To know more about this you may want to read the thread How do I get the full path to the script executing?.