Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris

Re: Does %INC always have Unix-style paths?

by GrandFather (Sage)
on Aug 30, 2006 at 03:13 UTC ( #570296=note: print w/ replies, xml ) Need Help??

in reply to Does %INC always have Unix-style paths?

The key you require is "If EXPR is a bareword, the require assumes a ``.pm'' extension and replaces ``::'' with ``/'' in the filename for you, to make it easy to load standard modules. This form of loading of modules does not risk altering your namespace." (from require). See also %INC and @INC.

Update which doesn't actually say anything about it. However:

use lib ".\\"; print "$_\n" for @INC;


.\ C:\Program Files\ActiveState Komodo 3.5\lib\support\dbgp\perllib C:/Perl/lib C:/Perl/site/lib .

On an XP system and:

print "$_ => $INC{$_}\n" for keys %INC; prints in part: IO/Socket/ => C:/Perl/lib/IO/Socket/ => C:/Perl/lib/ => C:/Perl/lib/ => C:/Perl/lib/ DB/ => C:\Program Files\ActiveState Komodo 3.5\lib +\support\dbgp\perllib/DB/

DWIM is Perl's answer to Gödel

Comment on Re: Does %INC always have Unix-style paths?
Select or Download Code

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://570296]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (7)
As of 2015-12-01 04:41 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (794 votes), past polls