in reply to best way to read and save long list of words
Use the Benchmark module to time your approaches.
Oops edit: Additionally if you're going to be uniq'ing the list it might make more sense to keep a hash and use keys on that instead of just an array. As you read the words in just set the corresponding key to 1 and then you've already done the uniq pass (in effect).
The cake is a lie.
The cake is a lie.
The cake is a lie.
|
|---|