Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I work on a Mac, and my default perl version is v5.12.4. For 99% of the time I use a perlbrew install I have, as I for my work need numerous modules I don't want to install on system perl.

Is there a way to automatically switch to that install with bash startup? I tried adding

  perlbrew  switch perl-5.14.2

to .bashrc, but it doesn't seem to work

share|improve this question

migrated from serverfault.com Sep 12 '13 at 22:45

This question came from our site for system and network administrators.

1 Answer 1

A bit late, but for future searchers.

The command is pretty simple in my case I use Linux Centos 6.5 but because it uses perlbrew command I expect the same behavior, if not, just mention.

perlbrew install perl-5.14.2 -n --switch

You have a lot more options to tinker in perlbrew -h have fun!

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.