> > -------- Original Message --------
> > Subject: Help with parameters.
> > Date: Tue, 29 May 2001 11:12:46 -0500
> > From: Nimmagadda Rajeev SRK <[EMAIL PROTECTED]>
> > Organization: IBM Corporation.
> > To: [EMAIL PROTECTED]
> >
> >
> > Hi,
> >
> > I have built modperl 1.25.
> >
> > I could run perl scripts fine.
> >
> > How can I send parameters to a perl scripts?
> >
> > Using  http://mydomain.com/perl/foreach.pl?200+300 does not seem to work.
>
> you'll need to do it as something like
> http://mydomain.com/perl/foreach.pl?num1=200&num2=300
>
> then do :
>
> my $q=new CGI;
> my $num1=$q->param('num1');
> my $num2=$q->param('num2');
>
> Parameters work a bit different in mod_perl.
>
>   Issac
>
> PS.  Stas - you DID remember to put this into the book somewhere... didn't
> you?  I'm sincerely praying that I just don't remember where... :)

What do you mean? Are you talking about $r->args?
http://perl.apache.org/guide/snippets.html#CGI_params_in_the_mod_perl_ish_
If so, yes, it handles empty values differently from CGI::param.

_____________________________________________________________________
Stas Bekman              JAm_pH     --   Just Another mod_perl Hacker
http://stason.org/       mod_perl Guide  http://perl.apache.org/guide
mailto:[EMAIL PROTECTED]   http://apachetoday.com http://eXtropia.com/
http://singlesheaven.com http://perl.apache.org http://perlmonth.com/


Reply via email to