Link to home
Start Free TrialLog in
Avatar of alweiner
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?
ASKER CERTIFIED SOLUTION
Avatar of b2pi
b2pi
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial