[Israel.pm] Objects and classes
semuel
semuel at semuel.co.il
Sun Jan 11 13:05:46 PST 2004
Hello There.
In mod_perl_2, there is an Apache::RequestRec object, that basically holds
the request and the response, And have a really few methods.
And there are other classes, like Apache::RequestIO, that expand that
functionality. In this case, it add methods like "content_type" and "print",
that let you print out the response, using:
$r->content_type('plain/html');
Where $r is of Apache::RequestRec.
The question is: have you seen other cases of classes that do something
similar?
It's like plating a method inside other object. Is this style is popular?
Semuel.
More information about the Perl
mailing list