in reply to Re: hash array removal ?
in thread hash array removal ?
This seems to work in the begging but fails shortly after.sub del { if (defined $list->curselection) { my $entry = $list->curselection; $list->delete($entry); $varbind = ''; $data = ''; print "INDEX: $index\n"; print "ENTRY: $entry\n"; my $position = ($single - 1); splice @{$hash->{'TRAPS'}->{'TRAP_LIST'}}, $position, $entry; } }
Is it that I have to grep for empty array's in the TRAP_LIST after the splice?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: hash array removal ?
by Anonymous Monk on Feb 25, 2003 at 21:06 UTC |