Syntactic Confectionery Delight | |
PerlMonks |
Re: program pathby ZlR (Chaplain) |
on Feb 25, 2005 at 14:57 UTC ( [id://434496]=note: print w/replies, xml ) | Need Help?? |
$0 is a special variable that holds the full path of the script, if you launched it with the full path . If you launch it with ./ for example you will not have the full path. Strip the file name from the path with File::Basename . use cwd will give you the cwd function that returns the current path .
In Section
Seekers of Perl Wisdom
|
|