Which I should probably have mentioned that all of this is to avoid editing
the LIB entry for Makefile.PL, and let @INC do the work for me.


----- Original Message -----
From: "Jeff 'japhy' Pinyan" <[EMAIL PROTECTED]>
To: "Paul Johnson" <[EMAIL PROTECTED]>
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 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 @INC is usually best done in a BEGIN block.
>
> Which leads us to:
>
>   use Cwd;
>   use lib cwd();
>
> --
> Jeff "japhy" Pinyan      [EMAIL PROTECTED]      http://www.pobox.com/~japhy/
> RPI Acacia brother #734   http://www.perlmonks.org/   http://www.cpan.org/
> ** Look for "Regular Expressions in Perl" published by Manning, in 2002 **
> <stu> what does y/// stand for?  <tenderpuss> why, yansliterate of course.
> [  I'm looking for programming work.  If you like my work, let me know.  ]
>
>



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to