>
Cc: "George Szynal" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Sunday, October 27, 2002 11:48 AM
Subject: Re: Current working directory and @INC
> On Oct 27, Paul Johnson said:
>
> >On Sun, Oct 27, 2002 at 02:35:55PM -0500, Jeff 'japhy' Pinyan wrot
Like so?
use Cwd;
$dir = getcwd();
$targetDir = $dir . //Contents//Resource//AddSystem//;
push @INC, $targetDir;
On Oct 27, Paul Johnson said:
>On Sun, Oct 27, 2002 at 02:35:55PM -0500, Jeff 'japhy' Pinyan wrote:
>
>> On Oct 27, George Szynal said:
>>
>> >Please show a good way to append the current working directory to @INC.
>>
>> To append a value to any old array, you use push()
>>
>> @list = qw( a b c
On Sun, Oct 27, 2002 at 02:35:55PM -0500, Jeff 'japhy' Pinyan wrote:
> On Oct 27, George Szynal said:
>
> >Please show a good way to append the current working directory to @INC.
>
> To append a value to any old array, you use push()
>
> @list = qw( a b c );
> push @list, 'd';
And changing
On Oct 27, George Szynal said:
>Please show a good way to append the current working directory to @INC.
To append a value to any old array, you use push()
@list = qw( a b c );
push @list, 'd';
--
Jeff "japhy" Pinyan [EMAIL PROTECTED] http://www.pobox.com/~japhy/
RPI Acacia brothe
Please show a good way to append the current working directory to @INC.
Will this work? (I'm not able to access my perl server at this time). Is there a way
to do this without using Cwd?
---
use Cwd;
$dir= getcwd();
@INC = @INC . $dir;
---