![]() |
|
Don't ask to ask, just ask | |
PerlMonks |
Re^2: Getting the absolute path of a script, without PWDby perlancar (Hermit) |
on Jul 15, 2021 at 12:02 UTC ( #11135025=note: print w/replies, xml ) | Need Help?? |
One reason is for logging path and the symlinked version is more meaningful and/or hides unwanted detail. For example I have a device /media/USER/1234-5678 mounted but I also keep /media/USER/MORE-MEANINGFUL-NAME symlinked to it and want to log the filenames inside the symlinked version. Okay not a great example as I should've just relabeled the removable volume in the first place, but that's the only example I can think of right now. There are other cases I've encountered previously.
In Section
Seekers of Perl Wisdom
|
|