Re:Perl 5.30.0 documentation site
by wyclif on Monday June 10, 2019 @10:22AM
(#20146952)
Here's a n00b but honest question: what is the current "best practice" method of managing Perl versions on macOS? Does Perl have anything comparable to pyenv or rbenv, or do people generally use perlbrew?
[ Parent
| on HN ]
Re:Perl 5.30.0 documentation site
by xeeeeeeeeeeenu on Monday June 10, 2019 @10:30AM
(#20147019)
There are at least two solutions, perlbrew[1] and plenv[2]. Personally, I prefer perlbrew.
[1] - https://perlbrew.pl
Re:Perl 5.30.0 documentation site
by senorsmile on Monday June 10, 2019 @10:21PM
(#20152593)
I always use plenv for this.
Not specifically related to your question, but carton is also a must: https://metacpan.org/pod/Carton
Yeah, after installing it earlier today and using it for the first time plenv makes sense to me because I'm also using shims over in pyenv- and rbenv-land, so I set it up like this:
$ echo 'eval "$(plenv init - zsh)"' >> ~/.zshrc
There's a consistency to them all doing essentially the same thing on my rig (i.e. instead of exporting shell functions to switch PATH).We use plenv after trying perlbrew. It's shell based, doesn't require perl. The Perl-Build plugin does, however. It has straightforward documentation and creates shims instead of relying on aliases.
Nixpkgs supports multiple versions of Perl and allows you to use them side-by-side.