To your second question: The shortest undef is $\, which is undef by default.
In reply to Re: Collapsing Arrays with Empty Values by busunsl in thread Collapsing Arrays with Empty Values by tadman