alweiner
asked on
Simple Perl syntax Q
The following is part of a cgi program that outputs fields from a form:
foreach $key (sort(keys %in)) {
print MAIL " ",$key, "\t=", $in{$key}, "\n";
}
I'd like to print out all the keys and values in unsorted order (ie, in the order in which they appear in the form). How would I modify the code above to accomplish this?
foreach $key (sort(keys %in)) {
print MAIL " ",$key, "\t=", $in{$key}, "\n";
}
I'd like to print out all the keys and values in unsorted order (ie, in the order in which they appear in the form). How would I modify the code above to accomplish this?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.