As with many programming languages, it’s very easy to find Perl code that can best be described as “write only”. Cute tricks, short variable names, inconsistent spacing, dubious reliance on default arguments… Even without the added challenge of a whole extra embedded language (regular expressions), some Perl programs deserve to be referred to as line-noise.
Yet Perl is a beautiful, expressive language that can be used successfully by novices through to experts to achieve powerful results; and, with a little extra preparation can be easy to read, fun to work with, and a joy to maintain.
Perl has come a very long way even in the last 6 years since Dr Conway's Perl Best Practices book was published. This talk will provide a lightning tour of the current status of Perl's best practices using many of the ideas from Modern Perl.
An introduction that will include topics like:
by Nick Patch
Getopt modules, such as Getopt::Long, are used for processing command line options. There are over sixty Getopt modules on CPAN, which can be intimidating to select from. This talk will highlight some of the Getopt pearls that have been released in the past few years. Both beginners to command line processing and seasoned command line mungers who want to catch up with modern Getopt are welcome.
This course covers using and creating modules for your code. This course assumes you are familiar with basic Perl syntax, subroutines and conditionals.
You will learn:
This is a hands on course where you will be writing a module from scratch, using Module::Starter and writing tests. Attendees are requested to bring a laptop with Perl installed for the full day.
27th–29th June 2011