in reply to Importing CGI methods into a subclass as a class method
Whenever you have an aggregate object and want to export methods of the aggregated object(s), I think of Class::Delegation - this makes it (at least for one level of aggregation/calls) easy to delegate methods from your class to aggregated objects. I seem to have problem to derive a subclass from an Class::Delegation-using class, but that might be a problem of my code.
perl -MHTTP::Daemon -MHTTP::Response -MLWP::Simple -e ' ; # The $d = new HTTP::Daemon and fork and getprint $d->url and exit;#spider ($c = $d->accept())->get_request(); $c->send_response( new #in the HTTP::Response(200,$_,$_,qq(Just another Perl hacker\n))); ' # web
|
|---|