"Dennis Stout" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > ARHG. > > I want to stay as far away from use CGI; as possible =/ > > *sigh* > > mod_perl and the methods available in the apache request object shuold beable > to replace CGI.pm entirely, especially when you have a highly customized > RequestHandler :/ >
Its kind of silly to say that about CGI.pm, especially with mod_perl, where you have eliminated its biggest drawback ( its load time, which is not much of a drawback anyway because of AUTOLOADing ). And I do believe with MP2 it will be the canonical way to interface with client input. But you do have Apache::Request. It works like CGI.pm except it doesent have as many features ( namely, cookie support. Use Apache::Cookie for that ). Note: my $apr = Apache::Request->instance( $r ); --OR-- my $apr = Apache::Request->instance( Apache->request() ); use the latter if your sub/method dosen't have a request object yet. To get to your question, directly from the docs: # similar to CGI.pm my $value = $apr->param('foo'); my @values = $apr->param('foo'); my @params = $apr->param; this is all documented at perl.apache.org and search.cpan.org. See: http://search.cpan.org/author/JOESUF/libapreq-1.2/Request/Request.pm Todd W. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]