in reply to Merging two list with simple operation

To speed this up, you could read the first file into a hash, using the words as keys and the numbers as values. Then you could read through the second file and output the multiplication of the hash lookup as the result.

As you haven't shown any code, neither will I.

  • Comment on Re: Merging two list with simple operation

Replies are listed 'Best First'.
Re^2: Merging two list with simple operation
by fanticla (Scribe) on Jul 31, 2010 at 18:32 UTC

    @Corion: thank you very much. I'll try to change my (poor script) according to your suggestion, and post it later here.