in reply to "use lib" with low precedence?

Yes, modify @INC instead of using lib ;)
## instead of the standard ## BEGIN { unshift(@INC, LIST) } ## do BEGIN { push(@INC, LIST) }
It's important to take a look into the modules you use every once in a while, especially the pragmas ~ you'll learn a thing or two.

BTW ~ I'm not sure how this will effect version issues, like if you "use CGI 2.81;", and your lib has it, but the standard lib has 2.71.

update: If you're in the above situation, you could work some magic like in robustly list any Perl code's module dependencies and get fancy with it.

____________________________________________________
** The Third rule of perl club is a statement of fact: pod is sexy.

Replies are listed 'Best First'.
Re: Re: "use lib" with low precedence?
by joe++ (Friar) on Oct 07, 2002 at 12:17 UTC
    Sure, that's exactly it... stupid me ;-)

    Update: the stupidiest question is still the unasked question - learnt a much better trick cf Abigail's tip below!

    Thanks again!

    --
    Cheers, Joe