Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??
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":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (4)
As of 2024-03-28 16:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found