Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Introduction to using CPAN

Introduction to using CPAN

Presenter(s): Guillaume Aubert.
Date: 2013-04-20 1:30pm.
Event: DC-Baltimore Perl Workshop.
Location: University of Baltimore, Baltimore, MD.

Guillaume Aubert

April 20, 2013
Tweet

Other Decks in Programming

Transcript

  1. #dcbpw Introduction to using CPAN Introduction to using CPAN Guillaume

    AUBERT (AUBERTG) Sr Director of Engineering @ ThinkGeek @aubertguillaume Guillaume AUBERT (AUBERTG) Sr Director of Engineering @ ThinkGeek @aubertguillaume
  2. #dcbpw #dcbpw What is CPAN? • Comprehensive Perl Archive Network.

    • As of 4/19/2013: • 10,546 registered contributors. • 6,093 active contributors. • 31,588 unique distributions. • 198,266 total releases.
  3. #dcbpw #dcbpw Why should I use CPAN? • Faster delivery.

    • More robust code. • Access to code from more experienced programmers. • Learning opportunity. • Less code to maintain.
  4. #dcbpw #dcbpw How do I install CPAN modules? • The

    hard way: • Download the source archive. • Unzip, untar. • Build.PL or Makefile.PL
  5. #dcbpw #dcbpw How do I install CPAN modules? • The

    easiest way: curl -L http://cpanmin.us | perl - App::cpanminus cpanm My::Distribution • Companion app: PerlBrew http://perlbrew.pl curl -kL http://install.perlbrew.pl | bash
  6. #dcbpw #dcbpw How do I use a CPAN module? •

    Look at the « SYNOPSIS » section:
  7. #dcbpw #dcbpw How do I find the best module? •

    Task::Kensho https://metacpan.org/module/Task::Kensho • Basic Toolchain • Testing • Logging • Exception Handling • Object Oriented Programming • Asynchronous Programming • XML Development • Web Development • Web Crawling • Database Development • Excel / CSV • Module Development • Email • Date Modules • Scalability • Config Modules • Useful Command-line Tools • Script Hackery