Also see the parallel discussion on RT in perl #116665 Undef evaluated to array in some conditions.
In reply to Re: Perl bug ? by Corion in thread Perl bug ? by vsespb