# New Ticket Created by  Matt Follett 
# Please include the string:  [perl #78032]
# in the subject line of all future correspondence about this issue. 
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=78032 >


Hey *,

I have come across two cases that seem like bugs.  First, this:
my $j='A'|'B'; my $pair = $j=>'k'; $pair.kv.say
prints out:
any("A", "k", "B")
Is that what it is supposed to do?

The second issue is similar, if I do this:
my $junc = 'A' | 'B' | 'C'; my %foo = $junc => 'a value'; say %foo
I get:
C   a value
Obviously, accessing anything other than %foo<C> returns Any() whereas 
accessing %foo<C> actually returns 'a value'.

Maybe these aren't bugs and I just don't know any better.

Thanks,
Matt Follett

Reply via email to