SlideShare uses cookies to improve functionality and performance, and to provide you with relevant advertising. If you continue browsing the site, you agree to the use of cookies on this website. See our User Agreement and Privacy Policy.
SlideShare uses cookies to improve functionality and performance, and to provide you with relevant advertising. If you continue browsing the site, you agree to the use of cookies on this website. See our Privacy Policy and User Agreement for details.
Successfully reported this slideshow.
Activate your 14 day free trial to unlock unlimited reading.
12.
Installation
new
curl -L http://xrl.us/perlbrewinstall | bash
13.
Installation
cpan -i App::perlbrew
* Not recommended
14.
Properties
• does not require sudo
• perl installation are isolated
• site_lib, bin, lib
• install a new version ≠ upgrade
• @INC does not include old site_lib
15.
Benefits
• Easier-to-clean perl environments
• Nuke the whole thing to clean the
mess
• Old @INC does not accumulate with
old perls
16.
Benefits
• per-app isolated perl environments
setup.
• avoid, in advance, any possible
incompatible issues with other
apps.
• know your site_libs
• ‘sudo cpan’ is no more.
17.
Why?
• Don’t mess up vendor perl too
much.
• Learn new stuffs in the dev version
of perl.
• keep up with the fashion
18.
Why?
• Test modules or apps
• ... with newer perl
• ... with older perl
36.
Hates
• CPAN dependency list for
$framework is too long
• CPAN $modules takes too long to
install / tests takes very long time
to finish
• $software is too fat (eats too much
memory space) and slow
37.
Less Hateful
• bundle cpan dists with your
distribution
• PAR / Shipwright / %INC hack
• Avoid long dependency list
38.
Less Hateful
• smaller, single-purpose
• less memory consumption
• less sub-commands to be
memorized
• less memory consumption in your
brain
• easier to maintain / be faster