I know I would love to have my hands on that kind of code before Perl6 ...
Well, this gives you what you want ;-)
use CGI::Builder
qw| Your::SuperClass
Your::OtherSuperClass
|;
Would you be able to extract that code out and provide it to the community?
I thinked about the possibility to put that system in a general module, but I didn't find a (simple) way to do it. I don't think it's easy to 'extract' because it's simple, but very specific to the CGI::Builder (and extensions) process.
Anyway, if you want to see it yourself, the whole CGI::Builder code is just around 200 lines, so you could easily inspect it. I think the most important parts to look in the code are:
sub CGI::Builder::_::exec (that executes the handlers in the classes)
sub import (which sets the hash returned by the overrun_handler_map)
overrun_handler_map (Class::groups)
Domizio Demichelis
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.