Don't ask to ask, just ask | |
PerlMonks |
Re: How to determine absolute path of current Perl file?by Anonymous Monk |
on Mar 01, 2016 at 12:41 UTC ( [id://1156517]=note: print w/replies, xml ) | Need Help?? |
You have made the (reasonable) assumption that source files do not change during the execution? Why not further assume that the cwd is unchanged during compilation? Otherwise, you'd have to account for the possibility that a chdir occurs anywhere between the use statements...
In Section
Seekers of Perl Wisdom
|
|