Carl Jolley wrote:
> > AFAIK, on Windows's OSes the $0 variable is just the basename not the > full patch name. If the script was running as a cgi app, the > $ENV{PATH_TRANSLATED) _may_ provide the scripts full path name from > which the script's directory can be determined with a regex. > Definetly not. $0 is the path of the script as it was called. Including a possible directory added by the os while searching through the searchpath. But '/' and '\' can be a bit mangled. Running 'test.pl' located in 'e:\scripts' in the local dir 'c:\temp' will have $0 set to 'e:/scripts\test.pl' if 'e:\scripts' is in the search path. If you fully qualify 'e:\scripts\test.pl' in the call, $0 will be 'e:\scripts\test.pl'. Only if you call it from e:\bin it will be just 'test.pl'. (this is NT4 with perl 5.6.0 or 5.6.1) Thomas _______________________________________________ Perl-Win32-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs