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

The syntax my ($x,@f) generates a two dimensional array in @f.

Alpha produces what I would expect. Rakudo doesnt.

If the current version of rakudo is correct, then how to specify a 
single dimensional array?

 From #perl6 April 20 9.15

finanalyst: alpha: $_="a\tb\tc"; my ($k,@f) = map { .trim }, 
.split("\t"); @f.perl.say;$k.say
p6eval: alpha 30e0ed: OUTPUT«["b", "c"]␤a␤»
<snip lines with typos>
finanalyst: rakudo: $_="a\tb\tc"; my ($k,@f) = map { .trim }, 
.split("\t"); @f.perl.say;$k.say
p6eval: rakudo b05155: OUTPUT«[["b", "c"]]␤a␤»

my ($k,@f) appears to be the correct syntax. See below

finanalyst: rakudo: $_="a\tb\tc"; my $k,@f = map { .trim }, 
.split("\t"); @f.perl.say;$k.say
p6eval: rakudo b05155: OUTPUT«Symbol '@f' not predeclared in 
<anonymous>␤current instr.: 'perl6;PCT;HLLCompiler;panic' pc 152 
(compilers/pct/src/PCT/HLLCompiler.pir:108)␤»


Reply via email to