See. splice() for more info and Understanding splice for a good tutorial.## your best bet splice @{ $data->{TRAPS}->{TRAP_LIST} }, 1, 1; ## resets index to original undefined state delete $data->{TRAPS}->{TRAP_LIST}->[1]; ## shortens the array (generally not ideal) $#{ $data->{TRAPS}->{TRAP_LIST} }--;
_________
broquaint
In reply to Re: hash array removal ?
by broquaint
in thread hash array removal ?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |