Running this code on 2 OSes, gave me the following results, so far:
Lin: /etc/perl
Win: C:/Perl/site/lib
This is really puzzling.
Are you claiming that you've located a Windows perl whose @INC consists only of
C:/Perl/site/lib (and perhaps also
.) ?
I've not yet encountered a Windows perl whose @INC included
C:/Perl/site/lib but did not also include
C:/Perl/lib
I've read every post in this thread and I still struggle to understand what you are seeking.
UPDATE: Hang on ... the code you claimed to have run is:
for(@INC){
unless($_ eq '.'){
$libPath = $_;
last;
}
}
but I think you probably wanted:
for(@INC){
unless($_ eq '.'){
$libPath .= "$_ ";
}
}
Does that alteration lead to the (expected) inclusion of
C:/Perl/lib on the Windows system ?
I'm assuming that you really want the entire @INC, ignoring the "." ... in which case you might just as well
print "@INC\n";
and mentally ignore the dot.
Cheers,
Rob
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: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.