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


The .perl of a default Hash correctly shows when the hash has been scalarized:

    $ perl6 -e 'my %h := {:42a}; my $h = %h; say %h.perl; say $h.perl'
    {:a(42)}
    ${:a(42)}


However, the same distinction does not show up when using a parametarized Hash:

    $ perl6 -e 'my %h := :{:42a}; my $h = %h; say %h.perl; say $h.perl'
    :{:a(42)}
    :{:a(42)}

    $ perl6 -e 'my %h := Hash[Int,Str].new: :42a.Pair; my $h = %h; say %h.perl; 
say $h.perl'
    (my Int %{Str} = :a(42))
    (my Int %{Str} = :a(42))


It should show $(:{:a(42)}) and, I'm guessing, $(my Int %{Str} = :a(42)) for $h

Reply via email to