Dave,

>It looks to me that your hash %ch is empty.  Your
>foreach will never begin because there is no list to
>iterate.  You need to assign keys & values to %ch.

>When it is time to sort numerically, use the spaceship
>operator <=>.  So it would look like this:

>sort { $ch{1} <=> $ch{2} }

No I have got the data, I didnt show the full example. My tab delimited
file is something like this:

Complete music of Ockeghem    380
Bach Cantatas bwv140 etc     113
Achirana Marshall Trio     48
Hello Children     145

I just wanted to sort on the numbers and there might be more than one
occurrence. I could get round it by loading into mySQL DB and querying
it but that seems a bit of a long way round!


Regards

Mark


Reply via email to