> -------- 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... :)

Internet is a wonderful mechanism for making a fool of
yourself in front of a very large audience.
  --Anonymous

Moving the mouse won't get you into trouble...  Clicking it might.
  --Anonymous

PGP Key 0xE0FA561B - Fingerprint:
7E18 C018 D623 A57B 7F37 D902 8C84 7675 E0FA 561B





Reply via email to