Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

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

by dragonchild (Archbishop)
on May 03, 2004 at 19:50 UTC ( [id://350121]=note: print w/replies, xml ) Need Help??


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

How does CGI::Builder provide better superclassing than CGI::Application? I'm really confused about this statement. My runmodes go through two superclasses (at least!) before hitting CGI::Application, each providing some layer of useful stuff.

------
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

  • Comment on Re: Re: CGI::Application vs CGI::Builder

Replies are listed 'Best First'.
Re: Re: Re: CGI::Application vs CGI::Builder
by Anonymous Monk on May 03, 2004 at 20:29 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://350121]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (5)
As of 2024-04-19 04:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found