Everything You Always Wanted to Know About S'Ex But Were Afraid to Ask: Advanced Sub:Exporter Tricks

By Ricardo Signes (‎rjbs‎)
Date: Wednesday, June 18, 2008 10:05 AM
Duration: 45 minutes
Target audience: Advanced
Language:
Tags: sub::exporter


Exporter.pm lets you save on typing, but Sub::Exporter lets you save on coding by providing a means to build reusable toolkits that can be customized for each use.

Generators -- routines that build routines -- can produce customized code, built to each importer's specifications. Sub::Exporter lets you build and provide customized routines easily. You'll learn how to write generators, and how to use them with Sub::Exporter. In its simplest form, it's as easy to use as Exporter.pm. With just a bit more configuration, it can build, group, rename, and julienne routines easily. With this tool, you'll be able to provide interfaces that are both simpler and more powerful than those provided by the stock Exporter.

We'll also cover other dirty tricks, like building method factories, parameterized roles, class factories, and plugin helpers.


Perl Sites : perl | books | dev | history | jobs | learn | lists | use   
Yet Another Perl Conference North America