Tad J McClellan said:
There is no object orientation in any of that code.
If you think that there is, then you have a conceptual misunderstanding
somewhere.
If you can explain why you think that that code is object-oriented
then we could probably help to clear up your misunderstanding.
So, why do you think that the above is object-oriented?
I was refering to O'Reilly's "CGI Programming with Perl 2e", by Guelich...,
p87 says:
CGI.pm like Perl is powerful yet flexible.
It supports two styles of usage:
a standard interface
and an OO interface...
further on p88:
Here is an example. The OO syntax:
use strict;
use CGI;
my $q = new CGI;
my $name = $q->param( "name" );
print $q->header( "text/html" );
The standard Syntax looks like this:
use strict;
use CGI qw ( :standard );
my $name = param( "name" );
print header( "text/html" );
So I just figured that when you have [use CGI;] instead of [use CGI qw(
:standard )] it meant it was OO. I guess that's not quite right.