<<Use list context:
my @names = $q->param('name');
Cheers,
Ovid
>>
I've found this thread very helpful, and have changed it to use Vars (from
http://users.easystreet.com/ovid/cgi_course/) as I need a hash. This has
replaced the following:
foreach $entry (param()) {
$fieldhash{$entry}=param($entry);
Checkentry(param($entry));
}
with:
my $q=new CGI;
my %fieldhash=$q->Vars;
which is much neater. My subroutine "Checkentry" untaints the input. Is
there an easier way which will allow the hash values created by Vars to be
passed to my subroutine without stepping through a "foreach" loop?
Bob
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>