in reply to DOS's %0\..\ Perl Equivalent

Use Cwd..
use Cwd; $dir=getcwd; print $dir;

Replies are listed 'Best First'.
Re: Re: DOS's %0\..\ Perl Equivalent
by davemabe (Monk) on Jan 19, 2001 at 22:06 UTC
    I just tried your suggestion. The current working directory is not set to the share where the script is running from. This is the problem that %0\..\ resolves. Various Win32 variants set the cwd differently when running logon scripts, but %0\..\ is the same directory on all of them...

    Dave