Perl: the Markov chain saw | |
PerlMonks |
Re: hash sorting problemsby satchboost (Scribe) |
on Apr 20, 2001 at 21:42 UTC ( [id://74247]=note: print w/replies, xml ) | Need Help?? |
Ok..... First off, your sort should be something along the lines of sort {$a <=> $b} (keys %sentence_count). (This is known as the spaceship operator.)
My main question, though, is where are you putting the result of the sort?? You have the line (as I read it): This line doesn't make much sense to me. Update your node with the code reformatted, please.
In Section
Seekers of Perl Wisdom
|
|