Carl Brewer wrote:

My appologies, I've tried to grok this from the doco, but must have missed it somewhere while trying to parse apache::request somehow?

You mean Apache::RequestRec. Apache::Request is a 3rd party module.


I've got a script, I want to grab submitted values to it
of the form :

http://foo.bar/perl/script.pl?a=4

And I want to be able to work out what "a" is within script.pl,
ie, within the script I want to set a to "4", or whatever it
gets called as.

I know this is trivially easy to do with CGI.pm,
but how do I do it without CGI.pm?  (caveats
concerning taint etc appreciated)

print $r->args;


prints "a=4", you can also do:

$r->args("a=5");

Is that what you are after?

Also see the guts of Apache/compat.pm for how it provides the backcompat functionality of doing:

my %args = $r->args;

don't expect this to ever be part of the mp2 API, it's CGI.pm or Apache::Request that (will) do that job.


__________________________________________________________________ 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



Reply via email to