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 |