in reply to How do I print a partial array?
for my $element (@a) { print $element if defined($element); } [download]