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

Re: "use lib" with low precedence?

by PodMaster (Abbot)
on Oct 07, 2002 at 12:14 UTC ( [id://203299]=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (6)
As of 2024-04-19 10:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found