#!perl # # form_demo2.pl # # This is a libwhisker sample script which shows how to use the forms # functions, and parse the forms structure, to rewrite form elements. # use LW2; $HTML =< EOT $FORMS = LW2::forms_read( \$HTML ); foreach $key (keys %{ $FORMS->[0] }){ # skip main
definition next if($key eq "\0"); # basic data $type = lc($FORMS->[0]->{$key}->[0]->[0]); $value = lc($FORMS->[0]->{$key}->[0]->[1]); $attribs = lc($FORMS->[0]->{$key}->[0]->[2]); # turn