Modern Perl Toolchain

2,608 views

Published on

Modern Tools for Modern Perl

Published in: Technology
0 Comments
4 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
2,608
On SlideShare
0
From Embeds
0
Number of Embeds
6
Actions
Shares
0
Downloads
12
Comments
0
Likes
4
Embeds 0
No embeds

No notes for slide

Modern Perl Toolchain

  1. 1. Modern Perl Toolchain Modern Tools for Modern Perl (Barcelona.pm) Alex Muntada <alexm@alexm.org>
  2. 2. App::perlbrew  
  3. 3. # Install latest App::perlbrew$ sudo apt-get install git-core$ mkdir ~/git$ cd ~/git$ git clone https://github.com/gugod/App-perlbrew.git$ cd App-perlbrew$ ./perlbrew install
  4. 4. # Setup App::perlbrew$ ~/perl5/perlbrew/bin/perlbrew init$ source ~/perl5/perlbrew/etc/bashrc
  5. 5. # Install a new Perl$ sudo apt-get install build-essential$ sudo apt-get install libssl-dev libxml2-dev$ perlbrew install perl-5.12.2 --as my-perl$ perlbrew list$ perlbrew switch my-perl$ perlbrew off$ perlbrew use my-perl
  6. 6. App::cpanminus  
  7. 7. # Install App::cpanminus $ perlbrew install-cpanm
  8. 8. # Use App::cpanminus$ cpanm Foo::Bar$ cpanm --installdeps .
  9. 9. Dist::Zilla  
  10. 10. # Install Dist::Zilla $ cpanm Dist::Zilla
  11. 11. # Setup Dist::Zilla $ dzil setup $ dzil new Foo::Bar
  12. 12. # Use Dist::Zilla$ dzil test$ dzil listdeps | cpanm$ dzil authordeps | cpanm$ dzil build$ dzil clean$ dzil run bash$ dzil release
  13. 13. my %thanks = ( GUGOD => App::perlbrew, MIYAGAWA => App::cpanminus, RJBS => Dist::Zilla,);

×