P is for Practical | |
PerlMonks |
Array Element Deletionby rpike (Scribe) |
on Dec 04, 2008 at 21:01 UTC ( [id://728097]=perlquestion: print w/replies, xml ) | Need Help?? |
rpike has asked for the wisdom of the Perl Monks concerning the following question:
Hi,
I have an a hash and each element has an array ($hash{"SomeName"}[0], $hash{"SomeName"}2, etc..,). How can I delete a specific element from the array? How can I have it so that the last element extracted makes $#hash{"SomeName"} -1? I'm aiming to have a hash that has keys that are dates and in each have an array of values which I want to randomly select from and, once selected, delete it from the array. I'd appreciate any help you can give on this. Thanks in advance.
Rob
Back to
Seekers of Perl Wisdom
|
|