Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re^2: why isn't current dir (".") in my @INC ?

by tphyahoo (Vicar)
on Feb 22, 2007 at 14:27 UTC ( #601568=note: print w/replies, xml ) Need Help??


in reply to Re: why isn't current dir (".") in my @INC ?
in thread why isn't current dir (".") in my @INC ?

Yes, sidhekin, mystery solved :)

Well, at least solved enough that I can get the job done.

If I move the "use" statements back so that CPAN is the last module "used", everything works as I want.

Why CPAN behaves this way, and whether it should be considered a bug or a feature, is still open I suppose.

  • Comment on Re^2: why isn't current dir (".") in my @INC ?

Replies are listed 'Best First'.
Re^3: why isn't current dir (".") in my @INC ?
by shmem (Canon) on Feb 22, 2007 at 14:59 UTC
    Why CPAN behaves this way, and whether it should be considered a bug or a feature, is still open I suppose.

    Well, CPAN is used to update your system installation, so it seems pretty sensible to me for it to remove '.' from the search path. It doesn't want modules from just somewhere (and "." is somewhere) for modules to satisfy their dependencies, but only from perl's libdirs.

    --shmem

    _($_=" "x(1<<5)."?\n".q·/)Oo.  G°\        /
                                  /\_¯/(q    /
    ----------------------------  \__(m.====·.(_("always off the crowd"))."·
    ");sub _{s./.($e="'Itrs `mnsgdq Gdbj O`qkdq")=~y/"-y/#-z/;$e.e && print}

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://601568]
help
Chatterbox?
Discipulus yaaawn..
[Corion]: DST does that to everybody...
Corion attempts to find who to address to better target his drive-by patches
[Corion]: This time it's for the Duktape embedded Javascript engine, which would be nice to have IMO, but doesn't compile on Windows currently
[Corion]: I imagine it would be fun to have WWW::Mechanize:: Duktape, but I haven't seen a web browser written in Javascript yet, except the ones distributed with PhantomJs

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (10)
As of 2017-03-27 11:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (319 votes). Check out past polls.