For Programmers: Free Programming Magazines  


Home > Archive > PERL Beginners > September 2004 > @INC search path









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author @INC search path
Owen

2004-09-25, 8:55 pm


I just installed the latest File::Slurp and now I have two of them

/usr/lib/perl5/site_perl/5.8.3/File/Slurp.pm
/usr/lib/perl5/vendor_perl/5.8.1/File/Slurp.pm

a perldoc File::Slurp gives me the site_perl version(the latest)

Printing @INC gives me
..
..
/usr/lib/perl5/site_perl/5.8.3
..
..
/usr/lib/perl5/vendor_perl/5.8.1


perldoc -q @INC does not answer my query, so can I ask

Is the print out sequence of @INC consistent and the same as the search path?

I am very wary of deleting duplicate modules as it seems that those installed in the "vendor" (Mandrake) directory are necessary for much of Mandrake's operation.


TIA



--
Owen


Gunnar Hjalmarsson

2004-09-26, 3:55 am

Owen wrote:
> I just installed the latest File::Slurp and now I have two of them
>
> /usr/lib/perl5/site_perl/5.8.3/File/Slurp.pm
> /usr/lib/perl5/vendor_perl/5.8.1/File/Slurp.pm
>
> a perldoc File::Slurp gives me the site_perl version(the latest)
>
> Printing @INC gives me
> .
> .
> /usr/lib/perl5/site_perl/5.8.3
> .
> .
> /usr/lib/perl5/vendor_perl/5.8.1
>
> perldoc -q @INC does not answer my query, so can I ask
>
> Is the print out sequence of @INC consistent and the same as the
> search path?


Yes. You can confirm it if you like:

print File::Slurp->VERSION, "\n";

--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com