• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
Crafting Custom Interfaces with Sub::Exporter
 

Crafting Custom Interfaces with Sub::Exporter

on

  • 9,281 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.

Statistics

Views

Total Views
9,281
Views on SlideShare
9,099
Embed Views
182

Actions

Likes
0
Downloads
99
Comments
0

6 Embeds 182

http://d.hatena.ne.jp 173
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

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

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