• Email
  • Like
  • Save
  • Private Content
  • Embed
 

Crafting Custom Interfaces with Sub::Exporter

by on Jun 29, 2007

  • 8,581 views

Everybody knows about Exporter.pm: you use it, and if someone uses your module, they don't have to type quite as much. We'll look at how the Exporter works, and how it fails to take advantage of the ...

Everybody knows about Exporter.pm: you use it, and if someone uses your module, they don't have to type quite as much. We'll look at how the Exporter works, and how it fails to take advantage of the powerful concepts on which it's built. We'll see how you can provide flexible import routines that allow your module's user to type even less and get code that behaves much more like part of his own program. You can avoid repeating unnecessary parameters to every overly-generic routine and can avoid collision-prone global configuration. All of this is made possible -- and easy -- by Sub::Exporter.

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.

Accessibility

Categories

Upload Details

Uploaded via SlideShare as Adobe PDF

Usage Rights

© All Rights Reserved

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate. If needed, use the feedback form to let us know more details.

Cancel

6 Embeds 170

http://d.hatena.ne.jp 161
http://www.techgig.com 4
http://www.slideshare.net 2
http://192.168.10.100 1
http://reader.excite.co.jp 1
http://localhost:10010 1

Statistics

Likes
0
Downloads
99
Comments
0
Embed Views
170
Views on SlideShare
8,411
Total Views
8,581
Post Comment
Edit your comment

Crafting Custom Interfaces with Sub::Exporter Crafting Custom Interfaces with Sub::Exporter Presentation Transcript