in reply to Re: delete array element from array ref
in thread delete array element from array ref
@{$listref} = grep { defined } @{$listref};
after performing the deletion. (Of course that assumes that undef isn't a valid value in the list.)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: delete array element from array ref
by GrandFather (Saint) on Aug 22, 2008 at 07:42 UTC | |
by tinita (Parson) on Aug 23, 2008 at 19:17 UTC |