# New Ticket Created by Paul Cochrane
# Please include the string: [perl #123808]
# in the subject line of all future correspondence about this issue.
# <URL: https://rt.perl.org/Ticket/Display.html?id=123808 >
It seems that although qqw{} and << >> are equivalent
my $a = 42;
<<$a b c>>.perl; # ("42", "b", "c")
qqw{$a b c}.perl; # ("42", "b", "c")
they don't always behave the same. For instance:
my $a = 42; say <<$a b c>>; # 42bc
my $a = 42; say qqw{$a b c}; # 42 b c
moritz++ used this on IRC:
sub f(*@a) { say @a.elems }; my $a = 42; f «$a b c»; f qqw{$a b c}
OUTPUT«33»
multi f(*@a) { say @a.elems }; multi f($one) { say 'one'}; f «b c»; f qqw{b c}
OUTPUT«2one»
and showed that the quoting constructs differ when there is a single-element
multi candidate available.
One would expect that these two constructs should behave in the same manner.