[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ic] Looping through form variables in [perl] tag


suppressed wrote:
> I should be able to do
>
> [tmp][perl]
> while (($key, $value) = each %CGI::values) { }
>
> ## or
>
> foreach my $key ( keys %CGI::values ) {}
> [/perl][/tmp]
>
>   
because I see code like that in the core, but it doesn't work. Can
> someone tell me how to loop through the form variables?
>
> thank you,
> tom friedel
>
>
>   

Tom,

You should be able to do this:

[perl]

foreach my $key ( keys $CGI ) {}

[/perl]

Richard Templet
End Point Corp.
(919) 300-7303


_______________________________________________
interchange-users mailing list
suppressed
http://www.icdevgroup.org/mailman/listinfo/interchange-users


Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.