develooper Front page | perl.beginners | Postings from January 2002

RE: What's wrong with this?

Thread Previous | Thread Next
From:
Jonathan E. Paton
Date:
January 29, 2002 07:19
Subject:
RE: What's wrong with this?
Message ID:
20020129151953.49848.qmail@web14603.mail.yahoo.com
> > If you want to loop over all the form fields, you'd
> > do:
> >
> >   for $field (param()) {
> >     print "$field => ", param($field), "<br>\n";
> >   }
> >
> 
> How can the param's be placed into a new hash?

my %hash = param();

since param() detects whether it's in list/array/hash
context and does the Right Thing.

Jonathan Paton

__________________________________________________
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About