in reply to "use lib" with low precedence?

You can make use of the fact that lib::import deletes duplicates from @INC, and do:
use lib @INC => "libdir";

That will effectively put libdir after all the other directories in @INC.

Abigail

Replies are listed 'Best First'.
Re: Re: "use lib" with low precedence?
by jordanh (Chaplain) on Oct 07, 2002 at 13:25 UTC
    I like this trick better than manipulating @INC directly, as others have suggested.

    Seems like doing this is clearer and more likely to be robust if new magic is added to @INC at some point.