in reply to How to determine absolute path of current Perl file?
probably i do not fully understand your question (in case i'm sorry) but is not abs_path from core module Cwd what you need? anyway the last module you cited is fairly simple to understand: it cycles @INC and tries possible instances of file, the same way Perl does when you use a module.
Just a dozen of lines plus an half doze to handle the path separator of different OS.
L*
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How to determine absolute path of current Perl file?
by hakonhagland (Scribe) on Feb 29, 2016 at 10:29 UTC |