in reply to Re: reading/writing to a file
in thread reading/writing to a file
A premature optimisation is a Bad ThingNow, I'd like to oberve that you don't really need two separate hashes, but only the dictionary (or the exclude, if you prefer) one. Basically, words that were already seen (either because already present in the output file, or because you see them as you iterate over the INPUT ONE) are to be excluded, so you can mix the two sets. The consequence is
Update: corrected the auto-vivification beasty comment. I wonder how much wrong assumptions I've got inside my head - at least the magnitude order.
Flavio
perl -ple'$_=reverse' <<<ti.xittelop@oivalf
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: reading/writing to a file
by tlm (Prior) on Jun 18, 2005 at 20:49 UTC |