x puts (1,2) array in scalar context, that's why you have "1 2" string repeated
10 times.
try xx operator, it works in array context
$ perl6 -e 'say join("|", (1,2) xx 10)'
1|2|1|2|1|2|1|2|1|2|1|2|1|2|1|2|1|2|1|2
bbkr
On 10 Feb 2014, at 14:19, Kamil Kułaga wrote:
> Hi,
>
> I've played wit
Hi
You can force correct stringification method by explicit convaersion
say $/[0].Str
or using print which uses it implicitly
print $/[0] ~ "\n"
bbkr
On 15 Jul 2014, at 17:16, MAX PUX wrote:
> I've written this code:
> use v6;
>
> my $file =3D open "us_foreign_assistance.xml";
>
> for $
> In the original report, an argument can be made that the programmer ought to
> have made the program more useful by writing
>
>sub MAIN (Int $integer) { ... }
What if there are two integer params? MAIN (Int $integer1, Int $integer2) looks
bad and subroutine body may be hard to understand.
I've tested previous Rakudo builds and moar-2017.05 works fine, moar-2017.07 is
broken. So regression happened somewhere between those two versions.
There is no strace on macOS, I used dtruss (dtrace):
$ dtruss -p 1827
SYSCALL(args)= return
fstat64(0x0, 0x7FFF5B18B2F0, 0x1)= 0 0
lseek(0x0, 0x0, 0x1) = 54132 0
write(0x1, "Nil\n\0", 0x4) = 4 0
thread_selfid(0x0, 0x7F8252ED2090, 0x4)
> And some C++ stackoverflow post claimed this was a bug in standard
> library on macos that was fixed in some version already.
I'll try to get you Sierra (10.12) and High Sierra (10.13) results tomorrow.