in reply to Re^3: Do modules know the callers full path?
in thread Do modules know the callers full path?
Please correct me, but how is this better than abs_path($0) ?
AFAIK is abs_path the problematic part, because the CWD might have changed after a chdir
I suppose that $0 is even better, since caller might only show an intermediate module instead of the root script (untested)
Cheers Rolf
(addicted to the 𐍀𐌴𐍂𐌻 Programming Language :)
Wikisyntax for the Monastery
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Do modules know the callers full path?
by haukex (Archbishop) on Feb 15, 2023 at 21:20 UTC | |
by haj (Vicar) on Feb 15, 2023 at 22:00 UTC | |
by haukex (Archbishop) on Feb 15, 2023 at 22:07 UTC | |
by LanX (Saint) on Feb 15, 2023 at 22:28 UTC | |
by LanX (Saint) on Feb 15, 2023 at 21:28 UTC |