in reply to Removing repeated words
I don't see a whole lot of room for improvement there. There is not really any way to avoid the hash growing that large, as far as I can see, as you can't simply expire any of its items.while (<STDIN>){ chomp; print grep !$a{$_}++, split m/\s/; print "\n"; }
Makeshifts last the longest.
|
|---|