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

Perl Introduction

ynonperek
December 21, 2011

Perl Introduction

Welcome To Perl

ynonperek

December 21, 2011
Tweet

More Decks by ynonperek

Other Decks in Programming

Transcript

  1. CHOOSE PERL Simplicity Object Oriented Test Driven CPAN Weird Perl

    is Everywhere The Perl Community Wednesday, December 21, 2011
  2. PERL KEY IDEAS Loosely Typed Powerful Text Processing Capabilities Simple:

    Write Only What You Need Creative: There’s more than one way to do it Modern Object Oriented and Maintainable Wednesday, December 21, 2011
  3. CHOOSE PERL Simplicity Object Oriented Test Driven CPAN Weird Perl

    is Everywhere The Perl Community Wednesday, December 21, 2011
  4. OO PERL use MooseX::Declare; class Person { has ‘name’, isa

    => ‘String’, is => ‘ro’; has ‘age’, isa => ‘Num’, is => ‘rw’; } Wednesday, December 21, 2011
  5. CHOOSE PERL Simplicity Object Oriented Test Driven CPAN Weird Perl

    is Everywhere The Perl Community Wednesday, December 21, 2011
  6. TDD PERL Perl is very TDD friendly Writing a test

    case is a breeze Results in clean code Wednesday, December 21, 2011
  7. TDD PERL A Unit Test In Perl use Test::More; is(

    power(2, 3), 8 ); done_testing; Wednesday, December 21, 2011
  8. CHOOSE PERL Simplicity Object Oriented Test Driven CPAN Weird Perl

    is Everywhere The Perl Community Wednesday, December 21, 2011
  9. CPAN CPAN is an archive of over 20,000 modules of

    perl software. CPAN modules are actively maintain and developed by the community, and for the community. CPAN is also a command line tool to automatically install modules from the archive. Wednesday, December 21, 2011
  10. CPAN Useful CPAN Modules: Spreadsheet::ParseExcel, Spreadsheet::WriteExcel Log::Fine, Log::Fast, Log::Tiny DBIx::Class,

    Moose, Dancer Try::Tiny, File::Slurp CPAN provides the tools to focus on YOUR problem. Wednesday, December 21, 2011
  11. CHOOSE PERL Simplicity Object Oriented Test Driven CPAN Weird Perl

    is Everywhere The Perl Community Wednesday, December 21, 2011
  12. PERL IS WEIRD use Acme::Labs; BRAIN: "Pinky, are you pondering

    what I'm pondering?" PINKY: "I think so, Brain, but first you'd have to take that whole bridge apart, wouldn't you?" zort eGAD ZORt zOrt egAD " nARf EGaD EgAD egAD NARF zOrt Zort egAD zorT ZOrT eGAD narf ZOrT eGAD zoRt narF ZORT ZoRT ZoRt ZOrT eGAD\ zOrt"; Valid Perl Wednesday, December 21, 2011
  13. PERL IS WEIRD And it can even count therbligs use

    Acme::Mobile::Therbligs; print count_therbligs(“hello world”); Will print 26 Valid Perl Wednesday, December 21, 2011
  14. CHOOSE PERL Simplicity Object Oriented Test Driven CPAN Weird Perl

    is Everywhere The Perl Community Wednesday, December 21, 2011
  15. CHOOSE PERL Simplicity Object Oriented Test Driven CPAN Weird Perl

    is Everywhere The Perl Community Wednesday, December 21, 2011
  16. CHOOSE PERL Simplicity Object Oriented Test Driven CPAN Weird Perl

    is Everywhere The Perl Community Wednesday, December 21, 2011
  17. PERL HISTORY June 5, 1988. Perl 2.0 Add Henry Spencer’s

    Regexp Library Wednesday, December 21, 2011
  18. PERL HISTORY Oct 18, 1989. Perl 3.0. Add Support for

    Binary Data Wednesday, December 21, 2011
  19. PERL HISTORY Mar 21, 1991. Perl 4.0 Not too much

    happened, as Larry describes: “We mostly just switched version numbers so the book could refer to 4.0” Wednesday, December 21, 2011
  20. PERL FUTURE Perl 6, After christmas. Type System Formal Subroutine

    Parameters Moose-like OO Wednesday, December 21, 2011
  21. PERL CULTURE - HAIKU no less can I say; require

    strict, close attention while you ... write haiku Wednesday, December 21, 2011
  22. PERL CULTURE - HAIKU ugliness that grows into beauty inside

    of your favorite shell Wednesday, December 21, 2011
  23. PERL CULTURE - HAIKU I often think of Perl programs

    as the haiku of the software world. Both are compact, dense, powerful, and frequently a little obscure Wednesday, December 21, 2011