Perl-Sensitive Sunglasses | |
PerlMonks |
Re: How could you make a script think it's running in its own directory?by Corion (Patriarch) |
on Mar 27, 2008 at 09:27 UTC ( [id://676665]=note: print w/replies, xml ) | Need Help?? |
I prefer File::Basename for that:
This fails if you have weirdo symlinks pointing around. There is FindBin which goes through weird contortions to cover special cases but opens up other venues of failure cases.
In Section
Seekers of Perl Wisdom
|
|