What directory perl script is being run from? - followup
From: R D (rkd_at_myrealbox.com)
Date: 03/19/04
- Next message: Sam Lowry: "Help - Counting text - Associative Array?"
- Previous message: Clement Seveillac: "Re: howto digitially sign emails programmatically with pgp?"
- Next in thread: Roel van der Steen: "Re: What directory perl script is being run from? - followup"
- Reply: Roel van der Steen: "Re: What directory perl script is being run from? - followup"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 19 Mar 2004 08:11:02 -0800
Thanks for quick reply.
Cwd didn't work because it gives what directory
you are currently in not the directory the script is in!
Can't get FindBin to work..any idea what's wrong with the following?
my $Bin;
use FindBin qw($Bin);
use lib "$Bin/../lib";
print $Bin;
My apologies for posting aout easy stuff but I don't use Perl
normally..just doing a quick hack to someone else's script!
Thanks again.
"Jürgen Exner" <jurgenex@hotmail.com> wrote in
news:_lE6c.313$VV1.66@nwrddc01.gnilink.net:
> R D wrote:
>> How do I get a *Windows* perl script to figure out what directory
it
>> is being run from/
>
> perldoc Cwd
>
>> exists in?
>
> perldoc FindBin
>
> jue
>
>
- Next message: Sam Lowry: "Help - Counting text - Associative Array?"
- Previous message: Clement Seveillac: "Re: howto digitially sign emails programmatically with pgp?"
- Next in thread: Roel van der Steen: "Re: What directory perl script is being run from? - followup"
- Reply: Roel van der Steen: "Re: What directory perl script is being run from? - followup"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|