my $CurrentArrayRef = $Stacks{nonexistant} || [];
Better yet:
This initializes $Stacks{ nonexistant } conditionally, and assigns its value to $CurrentArrayRef, thereby making this line:my $CurrentArrayRef = $Stacks{ nonexistant } ||= [];
unnecessary.# Now (re)store the contents into the stack $Stacks{nonexistant} = $CurrentArrayRef;
the lowliest monk
In reply to Re^2: creating defined references to arrays of size zero
by tlm
in thread creating defined references to arrays of size zero
by spieper
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |