in reply to using undef on a array

@a = undef;

This is interpreted as @a = (undef), i.e. it sets @a to a one element list, where the first (and only) element has the value undef.

--
<http://www.dave.org.uk>

"The first rule of Perl club is you don't talk about Perl club."