I suppose there might be name clashes, but I'll look into doing that. Lincoln
On Monday 24 March 2003 07:08 pm, Stas Bekman wrote: > Lincoln Stein wrote: > >>How about making CGI.pm a subclass of $r? (optionally of course, by > >>dynamically changing @ISA), so instead of returning $q it'll return $r, > >>after re-blessing it. > > > > Sounds interesting. What would be the advantage of that? > > The advantage is that > - you don't have to keep around two instances: $r and $q. > - assuming that CGI.pm-specific code is not used one can transparently > switch between Apache::Request and CGI.pm, by just changing: > > $r = Apache::Request->new($r); > $r = CGI->new($r); > > And of course Apache::Request is a subclass of Apache ($r) and it works > pretty well. > > In the future I can see someone extending Apache::Request to handle > CGI.pm's HTML generation in C, so the two could be replace each other. > > __________________________________________________________________ > Stas Bekman JAm_pH ------> Just Another mod_perl Hacker > http://stason.org/ mod_perl Guide ---> http://perl.apache.org > mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com > http://modperlbook.org http://apache.org http://ticketmaster.com -- ======================================================================== Lincoln D. Stein Cold Spring Harbor Laboratory [EMAIL PROTECTED] Cold Spring Harbor, NY ========================================================================