in reply to Re^3: delete array element from array refin thread delete array element from array ref
@{$listref} = grep {exists} @{$listref};
update: typo