in reply to Autovivification of scalars in sub calls

Um, qw( @$x ) is not a "builtin function". It's the single quoted string '@$x'.

Jeff japhy Pinyan, P.L., P.M., P.O.D, X.S.: Perl, regex, and perl hacker
How can we ever be the sold short or the cheated, we who for every service have long ago been overpaid? ~~ Meister Eckhart

Replies are listed 'Best First'.
Re^2: Autovivification of scalars in sub calls
by friedo (Prior) on Dec 08, 2005 at 01:38 UTC
    True, although an example with print demonstrates the behavior to which tlm was referring:

    perl -Mstrict -le 'my $x; print @$x' Can't use an undefined value as an ARRAY reference at -e line 1. perl -Mstrict -le 'my $x; sub { }->( @$x ); print @$x' (No error generated)