go ahead... be a heretic | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
hello hakonhagland and welcome to the monastery,
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*
There are no rules, there are no thumbs.. Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS. In reply to Re: How to determine absolute path of current Perl file?
by Discipulus
|
|