in reply to Re^2: form processing problem
in thread form processing problem

First off, when talking about general advantages of OO vs import-the-world (or import-what-you-need), I'm not sure that we could all agree on a single expert (possibly including Larry). And, even if we could, I'm not sure that Lincoln would necessarily be that expert ;-)

Secondly, the CGI documentation still states:

The examples in this document mainly use the object-oriented style.
It's not entirely clear that Lincoln has a preference.

Personally, I prefer the OO style to keep things clear in my head where things are coming from. But maybe that's just me. :-)

Replies are listed 'Best First'.
Re^4: form processing problem
by merlyn (Sage) on Mar 24, 2005 at 22:50 UTC
    when talking about general advantages of OO vs import-the-world
    Uh, I wasn't making this a general conversation. I was talking specifically about CGI.pm and the typical use (a singleton object, and with people who probably don't want to grok Perl's OO).

    Please don't light up a different fire. This one fans well enough. {grin}

    Secondly, the CGI documentation still states:
    The examples in this document mainly use the object-oriented style.
    That's a vestigial text. Look at the examples in the rest of the doc. They've been almost entirely converted to import style. This happened quite recently.
    It's not entirely clear that Lincoln has a preference.
    It's very clear to me. I've seen Lincoln talk at conferences. In fact, I even filled in for him once. His slides never use the OO form. That's why I wasn't surprised when he finally changed the manpage.

    -- Randal L. Schwartz, Perl hacker
    Be sure to read my standard disclaimer if this is a reply.