Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

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

by jcb (Vicar)
on Jun 25, 2020 at 23:34 UTC ( #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
Node Status?
node history
Node Type: note [id://11118547]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (3)
As of 2020-12-04 14:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How often do you use taint mode?





    Results (60 votes). Check out past polls.

    Notices?