Sorry ;). I was referring to the comment in the OP's code #reduces a file to a sorted list of unique words.
For the more general case your method is better.
In reply to Re^6: promoting array to a hash
by BrowserUk
in thread promoting array to a hash
by sleepingsquirrel
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |