Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: installing multiple versions of same module

by jsprat (Curate)
on Apr 26, 2002 at 16:42 UTC ( [id://162335]=note: print w/replies, xml ) Need Help??


in reply to installing multiple versions of same module

When you
use lib '/path/to/lib'
it is unshifted onto the front of @INC, so the directory you added at runtime will take precedence over the built-in @INC. HTH

Replies are listed 'Best First'.
Re: Re: installing multiple versions of same module
by jreades (Friar) on Apr 26, 2002 at 16:48 UTC

    You could also use a BEGIN block, I believe:

    BEGIN { unshift @INC, /path/to/other/libs; }

Log In?
Username:
Password:

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

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

    No recent polls found