How can I install specialized environments for different Perl applications?

后端 未结 8 1135
轻奢々
轻奢々 2021-01-31 19:00

Is there anything equivalent or close in terms of functionality to Python\'s virtualenv, but for Perl?

I\'ve done some development in Python and a possibility of having

8条回答
  •  星月不相逢
    2021-01-31 19:30

    While investigating, I discovered this and some other pages (this one is too old and misses new technologies, this reddit post is a slight misdirect).

    The problem with perlbrew and plenv is that they seem to be replacements for pyenv, not virtualenv. As noted here pyenv is for managing python versions, virtualenv is for managing per-project module versions. So, yes, in some ways similar to local::lib, but with better usability.

    I've not seen a proper answer to this question yet, but from what I've read, it looks like the best solution is something along the lines of:

    • Perl version management: plenv/perlbrew (with most people favouring the more contemporary bash based plenv over the perl based perlbrew from what I can see)
    • Module version management: Carton
    • Module installation: cpan (well, cpanminus anyway, ymmv)

    To be honest, this is not an ideal set up, although I'm still learning, so it may yet be superior. It just doesn't feel right. It certainly isn't a like for like replacement for virtualenv.

    There are a couple of posts I've found saying "it is possible" but neither has gone any further.

提交回复
热议问题