You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using a multi-dimensional Hash subscript of the form `.{ ; }` the
result is always returned as a List (as if taking a slice), even if
the subscript for each dimension is scalar:
my %hash = a => {b => 2, c => 4};
say %hash{"a"}{"b"}.perl; # 2
say %hash{"a";"b"}.perl; # (2,)
That doesn't seem logical, and is also inconsistent with multi-dimensional
*Array* subscripts:
my @array = 0, [0, 0, 42];
say @array[1][2].perl; # 42
say @array[1;2].perl; # 42
On the other hand, the design docs don't have much to offer on the subject...
Migrated from rt.perl.org#130947 (status was 'new')
Searchable as RT130947$
The text was updated successfully, but these errors were encountered: