Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: OOP in CGI

by jbrugger (Parson)
on Jul 29, 2005 at 08:20 UTC ( [id://479281]=note: print w/replies, xml ) Need Help??


in reply to OOP in CGI

I use the oo version, i think it's better readable and it fits better in our oo-written application.
It's easy to pass references to the cgi-object to other objects, easy to maintain etc.
Drawback of oo-style in Perl is that it IS slower, but then that's relative, most of the time sloppy code or bad algorithms slow your app really down, not the use of oo.

"We all agree on the necessity of compromise. We just can't agree on when it's necessary to compromise." - Larry Wall.

Replies are listed 'Best First'.
Re^2: OOP in CGI
by davorg (Chancellor) on Jul 29, 2005 at 11:35 UTC
    Drawback of oo-style in Perl is that it IS slower

    But that won't effect your choice of either the OO or functional interface to CGI.pm as even if you're using the functional interface, CGI.pm is actually creating and maintaining a CGI object for you in the background. So the functional interface isn't any faster.

    --
    <http://www.dave.org.uk>

    "The first rule of Perl club is you do not talk about Perl club."
    -- Chip Salzenberg

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (7)
As of 2024-04-19 09:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found