Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Re: Re: CGI::Application vs CGI::Builder

by Anonymous Monk
on May 03, 2004 at 20:29 UTC ( [id://350127]=note: print w/replies, xml ) Need Help??


in reply to Re: Re: CGI::Application vs CGI::Builder
in thread CGI::Application vs CGI::Builder

An example: http://search.cpan.org/~domizio/CGI-Builder-1.2/lib/CGI/Builder.pm#Overrunning
  • Comment on Re: Re: Re: CGI::Application vs CGI::Builder

Replies are listed 'Best First'.
You have written Perl6's method invocation in Perl5?
by dragonchild (Archbishop) on May 03, 2004 at 21:21 UTC
    So, basically, you provide something similar to the method invocation magic that Perl6 will be providing. Interesting ... Would you be able to extract that code out and provide it to the community? I know I would love to have my hands on that kind of code before Perl6 ...

    ------
    We are the carpenters and bricklayers of the Information Age.

    Then there are Damian modules.... *sigh* ... that's not about being less-lazy -- that's about being on some really good drugs -- you know, there is no spoon. - flyingmoose

      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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://350127]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (1)
As of 2024-04-24 13:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found