Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re: Getting logical path from Perl?by Tux (Canon) |
on Mar 08, 2021 at 15:47 UTC ( [id://11129342]=note: print w/replies, xml ) | Need Help?? |
I interpret the question as : I only want to run this script if it is invoked from the symlinked folder. Use Path::Tiny if you want to stay portable (as posted earlier). Check -l, readlink, and Cwd::abs_path to fill your needs.
Enjoy, Have FUN! H.Merijn
In Section
Seekers of Perl Wisdom
|
|