in reply to Why will referencing an undefined value as array reference create a real array
That's a feature called auto-vivification. Consider the following alternative:
print "this won't be printed\n" if (scalar @{$test} and scalar @{$test +}[0]);
jeffa
L-LL-L--L-LL-L--L-LL-L-- -R--R-RR-R--R-RR-R--R-RR B--B--B--B--B--B--B--B-- H---H---H---H---H---H--- (the triplet paradiddle with high-hat)
In Section
Seekers of Perl Wisdom