I have to be overlooking something obvious here... but what?

The first listing of @INC is missing ".". When I print @INC from perl -e further on, "." is in @INC.

What gives?

(In case it wasn't already clear, the module that isn't being found in @INC is found in the current directory.)

UPDATE: Perhaps I should also mention that I the perl executable was just compiled fresh from source, soI suppose something might have gone awry there...

UPDATE 2: Disregard the last update. Same behavior when run with /usr/bin/perl instead of the freshly compiled perl.

angebote@sql2:~/thartman/idealo-perl/tools/install-idealo-cpan-mods$ p +erl test.pl Can't locate ModuleList.pm in @INC (@INC contains: /home/angebote/thar +tman/shellenv/utils /usr/angebote/perlroot/lib/5.8.6/x86_64-linux /us +r/angebote/perlroot/lib/5.8.6 /usr/angebote/perlroot/lib/site_perl/5. +8.6/x86_64-linux /usr/angebote/perlroot/lib/site_perl/5.8.6 /usr/ange +bote/perlroot/lib/site_perl) at test.pl line 6. BEGIN failed--compilation aborted at test.pl line 6. angebote@sql2:~/thartman/idealo-perl/tools/install-idealo-cpan-mods$ c +at test.pl #!/usr/angebote/perlroot/bin/perl use strict; use warnings; use CPAN; use ModuleList; print "blee\n"; angebote@sql2:~/thartman/idealo-perl/tools/install-idealo-cpan-mods$ / +usr/angebote/perlroot/bin/perl -MModuleList -e 'print "blee\n"' blee angebote@sql2:~/thartman/idealo-perl/tools/install-idealo-cpan-mods$ t +ype perl perl is aliased to `/usr/angebote/perlroot/bin/perl' angebote@sql2:~/thartman/idealo-perl/tools/install-idealo-cpan-mods$ p +erl -MData::Dumper -e 'print Dumper([@INC])' $VAR1 = [ '/home/angebote/thartman/shellenv/utils', '/usr/angebote/perlroot/lib/5.8.6/x86_64-linux', '/usr/angebote/perlroot/lib/5.8.6', '/usr/angebote/perlroot/lib/site_perl/5.8.6/x86_64-linux', '/usr/angebote/perlroot/lib/site_perl/5.8.6', '/usr/angebote/perlroot/lib/site_perl', '.' ]; angebote@sql2:~/thartman/idealo-perl/tools/install-idealo-cpan-mods$

In reply to why isn't current dir (".") in my @INC ? by tphyahoo

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.