in reply to hash array removal ?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: hash array removal ?
by Anonymous Monk on Feb 25, 2003 at 19:00 UTC | |
This seems to work in the begging but fails shortly after. Any idea why? Is it that I have to grep for empty array's in the TRAP_LIST after the splice? | [reply] [d/l] |
by Anonymous Monk on Feb 25, 2003 at 21:06 UTC | |
when u call sub del he cut the array from index:2 3 cells. you can do splice @{$VAR2->{'TRAPS'}->{'TRAP_LIST'}}, 22, 43; and it will do nothing to the array, because cell 22 to 67 are not exists. you do not need to ask if the cell is defined or not if its defined he will cut him. | [reply] [d/l] |