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