in reply to Script Directory vs. Directory Script was Called From
use this....
#!C:\Perl\bin\perl.exe use Cwd; $dir = getcwd; print "current dir = $dir";
It worked right for me ... whatever directory you are in when you call the script, that is the directory that is delivered.
HTH
- f o o g o d
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Script Directory vs. Directory Script was Called From
by foogod (Friar) on Aug 15, 2001 at 01:20 UTC |