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.
In reply to Re: Type of arg 1 to splice must be array (not keys)
by AnomalousMonk
in thread Type of arg 1 to splice must be array (not keys)
by jeanluca
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |