## Gen some random test data
my @a = map{ { map{ int rand 100 } 1 .. 10 } } 1 .. 10;
## Print the hashes one per line sorted by key
print "$_\n" for map{
my $href = $_;
join ', ', map{
"$_ => $href->{ $_ }"
} sort{
$a <=> $b
} keys %{ $href }
} @a;
__OUTPUT__
2 => 28, 36 => 20, 49 => 97, 66 => 26, 72 => 28
25 => 99, 32 => 68, 46 => 70, 98 => 75, 99 => 49
37 => 64, 39 => 55, 43 => 29, 76 => 31, 90 => 48
21 => 33, 22 => 34, 76 => 36, 93 => 78, 96 => 14
31 => 69, 40 => 3, 54 => 20, 64 => 86, 86 => 7
17 => 36, 43 => 21, 53 => 8, 68 => 2, 95 => 69
3 => 12, 73 => 98, 89 => 49, 96 => 41, 98 => 46
9 => 90, 67 => 47, 73 => 22, 83 => 10, 85 => 67
20 => 12, 31 => 23, 36 => 75, 59 => 62, 92 => 28
45 => 21, 64 => 92, 90 => 45, 92 => 60, 93 => 69
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.