in reply to How to determine absolute path of current Perl file?
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...
|
|---|