in reply to How do I print a partial array?

print map { defined $_ ? $_ : ''; } @b; would be one way.