Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
PerlMonks vs Apache::Request

by Henri Icarus (Beadle)
on Jun 22, 2005 at 00:10 UTC ( #468868=perlquestion: print w/replies, xml ) Need Help??

Henri Icarus has asked for the wisdom of the Perl Monks concerning the following question:

I'm diving in to convert my CGI based web app to mod_perl and I've read the porting guide over at but I'm confused about how inter-operable is with Apache::Request. Specifically, it doesn't look like such methods as "delete" and "delete_all" are available in Apache::Request.

Any advice from those who have converted over and how they've handled this issue?


-I went outside... and then I came back in!!!!

Replies are listed 'Best First'.
Re: vs Apache::Request
by doink123 (Sexton) on Jun 22, 2005 at 07:16 UTC works perfect with mod_perl. You don't need to move to Apache::Request.
      I understand that works, I'm trying to get the speed and memory use gains that come with Apache::Request. Thus the need to upgrade.

      -I went outside... and then I came back in!!!!

Re: vs Apache::Request
by Ctrl-z (Friar) on Jun 23, 2005 at 13:02 UTC

    Im new to Apache::Request myself, so take this with a pinch of salt...

    Have you looked at Apache::Table? It provides similar functionality:

    my $q = Apache::Request->new(shift); my $table = $q->parms; $table->clear;

    You could create an Apache::Request subclass with's full API, eg

    package CGIRequest; use base Apache::Request; sub new { my $class = shift; return bless Apache::Request->new(@_), $class; } sub delete_all { my $self = shift; $self->parms()->clear(); } # ...etc 1;

    A quick test of the above code appears to be ok...

    Hope that helps

    time was, I could move my arms like a bird and...

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://468868]
Approved by Old_Gray_Bear
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (2)
As of 2023-01-30 05:04 GMT
Find Nodes?
    Voting Booth?

    No recent polls found