plasmatwin
Programmer
Hi,
In windows, the $0 variable returns the FULL path to my perl script, but in linux it is giving me a relative path - not useful to me at the moment. as soon as I chdir() to another directory (eg "/"), the relative path is no longer useful to me and $0 still contains the path relative to where I was at runtime. Any solutions to this problem?
In windows, the $0 variable returns the FULL path to my perl script, but in linux it is giving me a relative path - not useful to me at the moment. as soon as I chdir() to another directory (eg "/"), the relative path is no longer useful to me and $0 still contains the path relative to where I was at runtime. Any solutions to this problem?