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
In reply to Re: Script Directory vs. Directory Script was Called From
by foogod
in thread Script Directory vs. Directory Script was Called From
by seigniory
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |