Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

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

by choroba (Archbishop)
on Jun 25, 2020 at 15:36 UTC ( #11118538=note: print w/replies, xml ) Need Help??


in reply to Re^2: Best approach for temporarily swapping out a single perl module for a different version?
in thread Best approach for temporarily swapping out a single perl module for a different version?

Exactly. Adding a change can take a second or two, switching the branches is blazing fast.

map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]
  • Comment on Re^3: Best approach for temporarily swapping out a single perl module for a different version?
  • Download Code

Replies are listed 'Best First'.
Re^4: Best approach for temporarily swapping out a single perl module for a different version?
by nysus (Vicar) on Jun 25, 2020 at 15:54 UTC

    Very cool. One more question, though. I'm not very adept with git and trying to wrap my head around how I might incorporate your solution into my current setup.

    So I have a ~/git_repos directory for cloned modules from github where I keep perl modules that I contribute patches to. These repos track the upstream module and my own forked copy of the module. I also have a ~/perl/modules directory where I keep all my locally developed modules. These modules get installed to my local machine and they also get pushed out to cpan and github from this directory. This is where I modify my $PERL5LIB as appropriate to load the module from either ~/git_repos or ~/perl/modules.

    Do you have any suggestions for how I might be able manage these repos connected to github and still use your solution?

    $PM = "Perl Monk's";
    $MCF = "Most Clueless Friar Abbot Bishop Pontiff Deacon Curate Priest Vicar";
    $nysus = $PM . ' ' . $MCF;
    Click here if you love Perl Monks

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (3)
As of 2020-12-05 11:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How often do you use taint mode?





    Results (63 votes). Check out past polls.

    Notices?