Do you know where your variables are? | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
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 textAn 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 textI 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. In reply to Increasing key/values held in a Hash from an Array by Gavin
|
|