my $CurrentArrayRef = $Stacks{nonexistant} || []; #### my $CurrentArrayRef = $Stacks{ nonexistant } ||= []; #### # Now (re)store the contents into the stack $Stacks{nonexistant} = $CurrentArrayRef;