On Sat, Sep 24, 2011 at 02:45:20PM -0400, Uri Guttman wrote:
<snip>
>   >> On Sep 23, 2011 1:00 AM, "Mike McClain" <mike.j...@cox.net> wrote:
>   >> > On my system @INC doesn't include /usr/share/perl/5.8.8/
>   >> > even though there are nearly 1000 files there.
>   >> > Can anybody tell me where @INC is set.
>   >> >
> 
>   MM> Actually, as usual, the problem turned out to be 'operator malfunction'.
>   MM> There is /usr/share/perl/5.8/ which is a link to /usr/share/perl/5.8.8/
>   MM> but I didn't realize it and used File::Find without setting the 'follow'
>   MM> flag in a routine to build a data base of perl routines and the file and
>   MM> line where defined.
> 
> you also misstated the problem. you said perl doesn't have
> /usr/share/perl/5.8.8/ in @INC. did you ever verify that with perl -V?

No I did it like this:
mike@/deb40a:~> perl -le 'print $_ for @INC;'

> if that was your main dir for holding modules and perl couldn't see it,
> nothing would be loaded. if you had said File::Find can see files in
> there but perl could, then someone would have asked about a symlink and
> pointed you to the follow option. this is a lesson to all about proper
> stating of the problem. that is half the solution to any problem.
> 
> when confronted by this you first make sure perl sees the modules but
> your code doesn't. that eliminates the whole issue of @INC and how it is
> set. that was the X part of an XY problem. you thought the problem was X
> (not being in @INC) but it was Y (follow not set and a File::Find
> issue).

How kind of you to re-state what I had just said, I certainly
hope it makes you feel better and clearly a full understanding
of the origin of the problem led directly to its solution. That's
why I posted it as '[SOLVED]'.

Have a nice day,
Mike
-- 
Satisfied user of Linux since 1997.
O< ascii ribbon campaign - stop html mail - www.asciiribbon.org

-- 
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to