Re: Current working directory and @INC

2002-10-27 Thread George Szynal
> 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

Re: Current working directory and @INC

2002-10-27 Thread George Szynal
Like so? use Cwd; $dir = getcwd(); $targetDir = $dir . //Contents//Resource//AddSystem//; push @INC, $targetDir;

Re: Current working directory and @INC

2002-10-27 Thread Jeff 'japhy' Pinyan
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

Re: Current working directory and @INC

2002-10-27 Thread Paul Johnson
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

Re: Current working directory and @INC

2002-10-27 Thread Jeff 'japhy' Pinyan
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

Current working directory and @INC

2002-10-27 Thread George Szynal
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; ---