SPUG: finding full path to itself

jlb jlb at io.com
Tue May 30 15:40:05 PDT 2006


Cwd.pm provides some portable, safe methods to determine your current 
working directory.

On Tue, 30 May 2006, Satish Gupta wrote:

> When I a stand-alone script is running, how can this script determine it's own absolute path in a portable manner?
>
>  I notice that $0 works differently on different OS's. On some it gives full path and not on others.
>
>  Thanks
>
>
> ---------------------------------
> Be a chatter box. Enjoy free PC-to-PC calls  with Yahoo! Messenger with Voice.


More information about the spug-list mailing list