v4169sgr has asked for the wisdom of the Perl Monks concerning the following question:
Dear All,
If I have a hash $foo, with keys $bar, and I store a variable length array with values at index $idx, such that
$foo{$bar}->[$idx]is a value, then:
* how do I delete an element (say, at position $idx) from the array I have referenced from the hash?
'Delete' does not seem to do the trick, and I am not sure how to use 'Splice' in this specific example.
Thanks in advance! :)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Deleting an element in an array referenced by a hash element
by Corion (Patriarch) on Jul 12, 2010 at 10:57 UTC | |
by v4169sgr (Sexton) on Jul 12, 2010 at 16:14 UTC | |
|
Re: Deleting an element in an array referenced by a hash element
by jethro (Monsignor) on Jul 12, 2010 at 10:56 UTC | |
by jwkrahn (Abbot) on Jul 12, 2010 at 13:03 UTC |