Title: RE: CGI.pm Question

oops, wrong bracket type. Use parens:

push(@array, $query->param("$_"));


> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, August 05, 2004 10:50 AM
> To: Peter Eisengrein; '[EMAIL PROTECTED]';
> [EMAIL PROTECTED]
> Subject: Re: CGI.pm Question
>
>
> The below gives a syntax error: # near "->param{"
>
> my (@names, @array);
> @names = $query->param;
>
> foreach (@names)
> {
>         push(@array, $query->param{"$_"});
> }
>         print "@array \n";
>
>
>
>
> On Thu, 5 Aug 2004 10:37:49 -0400
>  Peter Eisengrein <[EMAIL PROTECTED]> wrote:
> > #untested
> >
> > @names = $query->param;
> >
> > foreach (@names)
> > {
> >     push(@array, $query->param{"$_"});
> > }
> >
> > #However I'd probably use a hash instead, like:
> >
> > foreach (@names)
> > {
> >     $hash{$_} = $query->param{"$_"};
> > }
> >
> > #but that's just me...
> >
> > > -----Original Message-----
> > > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> > > Sent: Thursday, August 05, 2004 10:27 AM
> > > To: [EMAIL PROTECTED]
> > > Subject: CGI.pm Question
> > >
> > >
> > > I'm reading through the CGI.pm docs right now and have
> > a
> > > question. I have an html file that has over 80 params
> > to
> > > pass to my script. I can grab all the names by using:
> > >
> > > @names = $query->param
> > >
> > > This works great..
> > >
> > > How can I get all the values this same way? All the
> > values
> > > are numeric, I just want to grab them all into an array
> > > then format them..
> > >
> > > Thank you
> > > Allan
> > > _______________________________________________
> > > Perl-Win32-Users mailing list
> > > [EMAIL PROTECTED]
> > > To unsubscribe:
> > http://listserv.ActiveState.com/mailman/mysubs
> > >
>

_______________________________________________
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to