in reply to Avoiding vivification with array slice
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 |