Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Best approach for temporarily swapping out a single perl module for a different version?

by jcb (Parson)
on Jun 25, 2020 at 23:34 UTC ( [id://11118547]=note: print w/replies, xml ) Need Help??


in reply to Best approach for temporarily swapping out a single perl module for a different version?

Other monks have mentioned a few solutions, but a big question is "how temporary?"

You could put the special version of the module in its own directory and use the -Idir option when you want to use that version. Then perl will look in that directory before the regular @INC, find the special version first, and load it.

  • Comment on Re: Best approach for temporarily swapping out a single perl module for a different version?
  • Download Code

Replies are listed 'Best First'.
Re^2: Best approach for temporarily swapping out a single perl module for a different version?
by tobyink (Canon) on Jun 27, 2020 at 07:12 UTC

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (5)
As of 2024-04-23 12:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found