I'm new to perl and I wrote a basic form parser library that extracts any form name/value pairs and returns them via a hash (attached, renamed from .lib to .txt). This works fine for form inputs with the NAME attribute, but using XHTML I want to replace NAME with ID. Is there anyway I can do it?
Here is the Perl file that extracts the arguments:
Code:#/usr/bin/perl use strict; use CGI::Carp qw(fatalsToBrowser); require "form_data.lib"; my %data = &parseForm; my $loopItem; print "content-type:text/plain\n\n"; foreach $loopItem (keys %data) { print "$loopItem = $data{$loopItem}\n"; }




Reply With Quote