@{$listref} = grep { defined } @{$listref};
after performing the deletion. (Of course that assumes that undef isn't a valid value in the list.)
In reply to Re^2: delete array element from array ref
by jlf
in thread delete array element from array ref
by llancet
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |