Perl: the Markov chain saw | |
PerlMonks |
Sorting a hash in a predetermined orderby edimusrex (Monk) |
on Nov 17, 2015 at 22:46 UTC ( [id://1147959]=perlquestion: print w/replies, xml ) | Need Help?? |
edimusrex has asked for the wisdom of the Perl Monks concerning the following question:
I am once again seeking some help (it's been a while which is good...I think?). What I am trying to do it sort a hash in a predetermined order by its value. I am sure there is an easy way to accomplish this but I'm a little stuck on it.
Here's the code thus far :
I would like to order the output in the order in which I fill the hash as listed above, so (ip, ok, method, status, protocol). This is going to eventually be used as a nagios check and it would be great if the output could be in a consistent order. Thank you for your wisdom
Back to
Seekers of Perl Wisdom
|
|