Hi Timothy,

Under windows XP I recall perl interpreter look for
the default paths

C:/Perl/lib
C:/Perl/site/lib

What I try to say is that how I add something to the
@INC of perl so that it also looks for another path
under windows let say
c:/Perl/local

Where I like to put my own stuff in it. I don't want
to mix them with others.


Thanks,

Li 

--- Timothy Johnson <[EMAIL PROTECTED]> wrote:

> 
> You don't need Unix to use lib, just change your
> backslashes to forward
> slashes.
> 
> 
> "CAVEATS
>     In order to keep lib.pm small and simple, it
> only works with Unix
>     filepaths. This doesn't mean it only works on
> Unix, but non-Unix
> users
>     must first translate their file paths to Unix
> conventions.
> 
>         # VMS users wanting to put [.stuff.moo] into
>         # their @INC would write
>         use lib 'stuff/moo';"
> 
> 
> 
> -----Original Message-----
> From: chen li [mailto:[EMAIL PROTECTED] 
> Sent: Friday, April 14, 2006 3:15 PM
> To: Timothy Johnson
> Subject: RE: how to tell perl to look for where a
> new module is
> installed
> 
> I don't want to add "use lib" within my code. What I
> need is that ask Perl to look for another path under
> Windows XP. It is a little different from those
> working with Linux or Unix machines. I have not
> figured it out yet.
> 
> Li
> 
> --- Timothy Johnson <[EMAIL PROTECTED]> wrote:
> 
> > 
> > perldoc lib
> > 
> > 
> > 
> 
> <snip>
> 
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to