in reply to Re: How to determine absolute path of current Perl file?
in thread How to determine absolute path of current Perl file?
Hi 1nickt! Thanks for your reply. Yes realpath($0) will give me the absolute path of $0 but it will be relative to the current directory, and not the initial current directory. For example, if the user script has changed directory with chdir it will not give a correct path name I think.
In Section
Seekers of Perl Wisdom