Perl: the Markov chain saw | |
PerlMonks |
Sorting a hash. What am I doing wrong?by mndoci (Scribe) |
on Jan 14, 2003 at 00:22 UTC ( [id://226664]=perlquestion: print w/replies, xml ) | Need Help?? |
mndoci has asked for the wisdom of the Perl Monks concerning the following question: I am trying to do the following I have some data which looks like
Anyway, I want to use the first column in each line as a unique key for a hash, (e.g. 1,2,3,5 .. and so on). I am doing this as follows
the results of the print command at the end are still random, i.e. not
Any ideas. I am sure I am overlooking something very trivial. mndoci "What you do in this world is a matter of no consequence. The question is, what can you make people believe that you have done?"-Sherlock Holmes in 'A study in scarlet'
Back to
Seekers of Perl Wisdom
|
|