in reply to Type of arg 1 to splice must be array (not keys)
I don't understand what you are trying to do. The statement
splice( keys(%mh), 0, 100 ) ;
suggests you want to remove the first 100 keys from the hash. However, a hash does not have a 'first n keys': 'first' implies order, and a hash does not have 'ordered' keys.
The statement
my @k = keys(%mh) ;
gives you all the keys of the hash in essentially random order.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Type of arg 1 to splice must be array (not keys)
by jeanluca (Deacon) on Dec 14, 2009 at 13:21 UTC |