Would this work for you?
http://www.perl.com/doc/manual/html/lib/Cwd.html
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
John Townsend
Sent: Tuesday, May 15, 2007 11:33 AM
To: perl-win32-users@listserv.ActiveState.com
Subject: How do I
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
John Townsend
Sent: Tuesday, May 15, 2007 08:33
To: perl-win32-users@listserv.ActiveState.com
Subject: How do I know where my Perl script is running?
2 ways of looking at your quesiton:
FindBin:
NAME
FindBin - Locate directory of original perl script
SYNOPSIS
use FindBin;
use lib $FindBin::Bin/../lib;
or
use FindBin qw($Bin);
use lib $Bin/../lib;
give you where the script itself is. The
- Original Message -
From: Wagner, David --- Senior Programmer Analyst --- WGO
[EMAIL PROTECTED]
$0 holds the name of the file executing your script. It appears as
fully qualified name.
I don't think the cwd will give you what you want as regards the
script being executed. ( In
Sisyphus wrote:
- Original Message -
From: Wagner, David --- Senior Programmer Analyst --- WGO
[EMAIL PROTECTED]
$0 holds the name of the file executing your script. It appears as
fully qualified name.
No it doesn't. It may or may not be fully qualified.
I don't think