in reply to promoting array to a hash
I don't see anything wrong with what you have, but you may be looking for a hash slice. Leaving out the grep selection stuff,
I'm not sure what you mean by sorted here, hashes don't support any stable order.my %words; while (<>) { @words{ split } = (); }
After Compline,
Zaxo
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: promoting array to a hash
by sleepingsquirrel (Chaplain) on Jun 13, 2004 at 05:29 UTC | |
by Zaxo (Archbishop) on Jun 13, 2004 at 05:41 UTC | |
by sleepingsquirrel (Chaplain) on Jun 13, 2004 at 06:07 UTC |