in reply to Just a wee bit o' mod_perl

Well, you could do something like:
my %params; foreach my $param ($apr->param) { $params{ $param } = $apr->param( $param ); }
Though you are still making copies of everything which might seem a bit inefficient...Unfortunately, I don't see a direct way to get at CGI.pm's internal storage of key/value pairs.


Dr. Michael K. Neylon - mneylon-pm@masemware.com || "You've left the lens cap of your mind on again, Pinky" - The Brain

Replies are listed 'Best First'.
Re: Re: Just a wee bit o' mod_perl
by BMaximus (Chaplain) on Apr 22, 2001 at 06:32 UTC
    Thanks Masem. I should have thought of that. I have no idea where my head was.

    Update: CGI.pm allows you get at all parameters through the  Vars() subroutine.
    Used as:  %params = Vars();
    Unfortunatly there is no equivalent in Apache::Request. I think its usefullness warants an addidtion to Apache::Request however I lack the knowlege to be meddling with xs. I'd love to know more about it. I know there is a section on it in the man page for perl.

    BMaximus