in reply to Re: Easy Script Editor
in thread Easy Script Editor

Thanks very much for that. You're right, I have been jolly confused about the differences between the two ways of using CGI.pm, and, as you can see, got around that confusion by ignoring it. Not a good long term strategy. But I think I do now understand it rather better, and I'm most grateful.

I must say I don't understand OO programming. And I feel I ought to, and I ought to use it for preference because it's... more advanced, grown up or something. This leads me into using it in ways I don't really understand what I'm doing - not a good thing. Perhaps I shouldn't get hung up on that, and just go with the functional approach which makes more intuitive sense to me.

§ George Sherston

Replies are listed 'Best First'.
Re: Re: Re: Easy Script Editor
by pixel (Scribe) on Oct 06, 2001 at 02:18 UTC

    OO is good when you have lots of instances of the same class, each carrying around their own pieces of data. But in a CGI script, it's very rare that you'd have more than one CGI object - therefore I think that the OO interface is unnecessary.

    (Actually, with the functional interface, it is creating a CGI object, but you don't need to know about it.)

    Blessed Be
    The Pixel