arkturuz has asked for the wisdom of the Perl Monks concerning the following question:
For example, I have a list of 5 numbers (/proc/loadavg actually) and I want to store them in a hash %load so that the first load is stored in %load{'ONE'}, second in %load{'FIVE'}, third in %load{'FIFTEEN'}. The rest is discarded.
So, is there a simple way to store a list to a hash which has predefined keys?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: A hash question
by salva (Canon) on Dec 19, 2005 at 14:47 UTC | |
by arkturuz (Curate) on Dec 19, 2005 at 14:59 UTC | |
by salva (Canon) on Dec 19, 2005 at 15:02 UTC | |
by arkturuz (Curate) on Dec 19, 2005 at 15:08 UTC |