my $x = []; # $x is now an (empty) arrayref $x = blah(); # $x is a scalar - wantarray reports 0