http://qs321.pair.com?node_id=601568


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 (Chancellor) 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}