http://qs321.pair.com?node_id=537579

Gavin has asked for the wisdom of the Perl Monks concerning the following question:

I have a hash (%hash) containing the following Data.
Key (holding the score)
Value (holding a line of text)
Key    Value
12     First line of text
25     Second line of text
34     Third line of text
An array @scoreWords holds a list of special words. I would like to increase the score held in each Key by $y for each occurrence of any of the special words on each line.

Any help would be much appreciated
I have a second hash containing the same text in the Values and the line numbers in the Key
Key    Value
1     First line of text
2     Second line of text
3     Third line of text
I would like to use the sorted key scores from the first hash to find the highest scoring lines of text in the second hash by their line numbers.