in reply to Re: Getting pair of values from an array
in thread Getting pair of values from an array
...treat @_ as a hash.
You are not TREATING the array as a hash, but in fact COPYING its contents into one. As noted elsewhere by Screamer, using a hash ignores the potential data loss of duplicate keys in the data. splice() is the way to go.
dmm
You can give a man a fish and feed him for a day ...
|
|---|