Better would be:
@{$listref} = grep {exists} @{$listref};
Update: this is of course complete bolix as pointed out by tinita++.
In reply to Re^3: delete array element from array ref
by GrandFather
in thread delete array element from array ref
by llancet
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |