in reply to Removing null values from within an array

Guess it's time to add a map solution as well.

my @n = array with nulls; @n = map { defined $_ ? $_ : () } @n;