Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Clarifications in subroutines, CGI.pm, HTML::Template and performance

by lima1 (Curate)
on Jun 18, 2006 at 10:39 UTC ( #556075=note: print w/replies, xml ) Need Help??


in reply to Clarifications in subroutines, CGI.pm, HTML::Template and performance

You should definitely take a look at CGI::Application. Just create a Module with C::A as base, add your custom code to that module and then use this new module (eg. CGI::MyStdApp) as base for your CGIs.

You can even package your common CGI::MyStdApp with Module::Starter to get an easy to install code base, and more important, no duplicated (for every app) code base.

This OO approach is not very fast in a classical CGI environment, but runs with nearly no modification in mod_perl. In mod_perl, you can cache HTML::Templates. The bottleneck is here often firefox, not the perl script ;)

  • Comment on Re: Clarifications in subroutines, CGI.pm, HTML::Template and performance

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (8)
As of 2021-05-06 13:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Perl 7 will be out ...





    Results (75 votes). Check out past polls.

    Notices?