in reply to Avoiding vivification with array slice

Next time please put also the output of your test programs :)
your $program, 'here'; __END__ # perl /tmp/slices.pl Initially: $VAR1 = [ '1', '2', '3' ]; After assign from: $VAR1 = [ '1', '2', '3' ]; After grep over: $VAR1 = [ '1', '2', '3', undef, undef, undef ];

Replies are listed 'Best First'.
Re^2: Avoiding vivification with array slice
by jbert (Priest) on Sep 09, 2008 at 14:40 UTC

    Well, I thought the comment in the code was sufficient - I didn't want to over-cook the node.

    I'll try and be more clear next time, thanks.