in reply to Re: sorting hash keys
in thread sorting hash keys
Thanks for your code but I can't get it to work.
Gives me the error Type of arg 1 to keys must be hash (not modulus (%)) at test.pl line 509, near "results) " Bareword "results" not allowed while "strict subs" in use at test.pl line 508. Execution of test.pl aborted due to compilation errors.foreach my $key (sort keys { $a <=> $b } %results) { print MAIL "$key) $results{$key}\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: sorting hash keys
by holli (Abbot) on May 28, 2005 at 19:47 UTC |