# New Ticket Created by Ilya Belikin
# Please include the string: [perl #61806]
# in the subject line of all future correspondence about this issue.
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=61806 >
Hi there!
examples:
> sub foo (%h?) { { a => 1, %h }.perl.say; }; foo( { b => 2 } );
{"a" => 1, "b" => 2} # :)
> sub foo (%h?) { { a => 1, %h }.perl.say; }; foo( { } );
{"a" => 1} # :)
> sub foo (%h?) { { a => 1, %h }.perl.say; }; foo();
Odd number of elements found where hash expected # :(
> say {a => 1, undef }.perl.say
Odd number of elements found where hash expected # :|
some suggestions from #perl6:
(22:11:28) ruoso: the question is whether an undefined hash shouldn't
behave as an empty hash
(22:12:17) avar: I think an empty has is the empty list in that
context, not undef
(22:12:24) avar: anyway, anything else would be silly
ihrd