RE: How do I know where my Perl script is running?

2007-05-15 Thread Hoopes, William @ CSE
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

RE: How do I know where my Perl script is running?

2007-05-15 Thread Wagner, David --- Senior Programmer Analyst --- WGO
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?

RE: How do I know where my Perl script is running?

2007-05-15 Thread Andy_Bach
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

Re: How do I know where my Perl script is running?

2007-05-15 Thread Sisyphus
- 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

Re: How do I know where my Perl script is running?

2007-05-15 Thread Bill Luebkert
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