# New Ticket Created by  Andrew Buchanan 
# Please include the string:  [perl #132053]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org/Ticket/Display.html?id=132053 >


> my @h is default([])
[]
> @h[0].push: 3
[3]
> @h
[]
> @h[0]
[3]

> my %h is default({})
{}
> %h<a><b> = 3
3
> %h
{}
> %h<a>
{b => 3}

The array/hash variable's default is an empty array/hash literal. If an element 
is autovivified, it can be accessed directly, but isn’t findable from the 
variable.

Reply via email to