@INC

@INC

am 23.09.2011 06:57:54 von Mike McClain

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.

mike@/deb40a:~/perl> perl -v
This is perl, v5.8.8 built for i486-linux-gnu-thread-multi

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

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

Re: @INC

am 23.09.2011 07:36:33 von Shawn Wilson

--00151744822a3313f004ad95313b
Content-Type: text/plain; charset=ISO-8859-1

On Sep 23, 2011 1:00 AM, "Mike McClain" 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.
>

Compile time IIRC. Where did that perl come from? Ie, if its from a package
manager, which one and what's the package version? What linux distribution
version are you on?

Either way, I suggest perlbree but you'll run ok either way.

> mike@/deb40a:~/perl> perl -v
> This is perl, v5.8.8 built for i486-linux-gnu-thread-multi
>

--00151744822a3313f004ad95313b--

Re: @INC

am 23.09.2011 08:06:41 von Paul Johnson

On Fri, Sep 23, 2011 at 01:36:33AM -0400, shawn wilson wrote:
> On Sep 23, 2011 1:00 AM, "Mike McClain" 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.
> >
>
> Compile time IIRC.

Run "perl -V" to see what it is set to.

> > mike@/deb40a:~/perl> perl -v
> > This is perl, v5.8.8 built for i486-linux-gnu-thread-multi

Do you have $PERL5LIB or $PERLLIB set? Or something strange like
PERL5OPT="-M-lib=/usr/share/perl/5.8.8"?

--
Paul Johnson - paul@pjcj.net
http://www.pjcj.net

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

Re: @INC [SOLVED]

am 24.09.2011 19:57:59 von Mike McClain

On Fri, Sep 23, 2011 at 01:36:33AM -0400, shawn wilson wrote:
> On Sep 23, 2011 1:00 AM, "Mike McClain" 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.
> >
>
> Compile time IIRC. Where did that perl come from? Ie, if its from a package
> manager, which one and what's the package version? What linux distribution
> version are you on?

Debian etch, package: perl_5.8.8-7_i386

> Either way, I suggest perlbree but you'll run ok either way.

I assume you meant perlbrew since a google of perlbree only
returned perlbrew.

> > mike@/deb40a:~/perl> perl -v
> > This is perl, v5.8.8 built for i486-linux-gnu-thread-multi
> >

Actually, as usual, the problem turned out to be 'operator malfunction'.
There is /usr/share/perl/5.8/ which is a link to /usr/share/perl/5.8.8/
but I didn't realize it and used File::Find without setting the 'follow'
flag in a routine to build a data base of perl routines and the file and
line where defined.

Thanks for the support,
Mike
--
Satisfied user of Linux since 1997.
O< ascii ribbon campaign - stop html mail - www.asciiribbon.org

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

Re: @INC [SOLVED]

am 24.09.2011 20:45:20 von Uri Guttman

>>>>> "MM" == Mike McClain writes:

MM> On Fri, Sep 23, 2011 at 01:36:33AM -0400, shawn wilson wrote:
>> On Sep 23, 2011 1:00 AM, "Mike McClain" 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.
>> >
>>
>> Compile time IIRC. Where did that perl come from? Ie, if its from a package
>> manager, which one and what's the package version? What linux distribution
>> version are you on?

MM> Debian etch, package: perl_5.8.8-7_i386

>> Either way, I suggest perlbree but you'll run ok either way.

MM> I assume you meant perlbrew since a google of perlbree only
MM> returned perlbrew.

>> > mike@/deb40a:~/perl> perl -v
>> > This is perl, v5.8.8 built for i486-linux-gnu-thread-multi
>> >

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?
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).

uri

--
Uri Guttman -- uri AT perlhunter DOT com --- http://www.perlhunter.com --
------------ Perl Developer Recruiting and Placement Services -------------
----- Perl Code Review, Architecture, Development, Training, Support -------

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

Re: @INC [SOLVED]

am 26.09.2011 18:09:10 von Mike McClain

On Sat, Sep 24, 2011 at 02:45:20PM -0400, Uri Guttman wrote:

> >> On Sep 23, 2011 1:00 AM, "Mike McClain" 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-unsubscribe@perl.org
For additional commands, e-mail: beginners-help@perl.org
http://learn.perl.org/

Re: @INC [SOLVED]

am 26.09.2011 18:26:47 von Uri Guttman

>>>>> "MM" == Mike McClain writes:

MM> On Sat, Sep 24, 2011 at 02:45:20PM -0400, Uri Guttman wrote:
MM>
>> >> On Sep 23, 2011 1:00 AM, "Mike McClain" 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?

MM> No I did it like this:
MM> 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).

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

but you still asked why @INC didn't load the module. it wasn't a LOADING
issue at all. you never eliminated that logic branch and so most of the
effort was wasted on why @INC wasn't working. you never mentioned
File::Find until much later. that is the lesson you should be
learning. restating the problem is to highlight the lesson here.

uri

--
Uri Guttman -- uri AT perlhunter DOT com --- http://www.perlhunter.com --
------------ Perl Developer Recruiting and Placement Services -------------
----- Perl Code Review, Architecture, Development, Training, Support -------

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

Re: @INC [SOLVED]

am 26.09.2011 19:00:27 von Rob Dixon

On 26/09/2011 17:26, Uri Guttman wrote:
>
> but you still asked why @INC didn't load the module. it wasn't a LOADING
> issue at all. you never eliminated that logic branch and so most of the
> effort was wasted on why @INC wasn't working. you never mentioned
> File::Find until much later. that is the lesson you should be
> learning. restating the problem is to highlight the lesson here.

Erm, Uri you have never had the air of someone who loves Perl and would
catch and explain a problem, but rather as one who wants to emphasise
that his own knowledge of Perl is brilliant beyond imagination and so is
very special. Please stop your silly elitism.

Mike's posts give clues about what he is trying to do. He has achieved a
solution alone without any useful help but plenty of derogation! For
goodness sake stop it: currently, the main offenders are Uri and Randal,
and have been for a long time.

This is a space where those who are unable can be helped to become able.
It is not a forum for those who think they know everything to denounce
everyone else. Indeed, show off practised proficency here and you should
be laughed at.

The group is beginners@perl.org Please remember that.

Rob



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