Is possible to have a cgi-perl script return the html form values + names, in the
same order in which they appearfo in the html rm supplying the post with out having to
refer to each hash/array element.
An example of what I am Woking with :
##########################
/usr/bin/perl -w
use CGI_Lite;
$cgi = new CGI_Lite ();
%data = $cgi->parse_form_data ();
@data = %data;
open(SENDMAIL, "|/usr/lib/sendmail")
or die "can't fork for sendmail: $!\n";
print SENDMAIL <<"EOF";
From: blah
To: blah
Subject: STUFF
@data
EOF
close(SENDMAIL) or warn "its all GONE WRONG!!!!!!!";
#############################################
I could reefer to each element of %data $data{whatever value} individually but this
seems a bit laborious.
It would be nice to have a ordered array I could pass straight out.