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

tom at readyink.com tom at readyink.com
Tue Apr 8 21:10:16 CDT 2008


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




More information about the interchange-users mailing list