Re: Unusual use of x string repetition operator

2014-02-10 Thread Pawel Pabian
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

Re: Could you give me some explanatio​ns about regex?

2014-07-15 Thread Pawel Pabian
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 $

Re: [perl #125251] Usage does not print required type for positional params in MAIN

2015-05-27 Thread Pawel Pabian
> 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.

[perl #132349] $*IN.getc not blocking on macOS

2017-10-22 Thread Pawel Pabian via RT
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.

[perl #132349] $*IN.getc not blocking on macOS

2017-10-22 Thread Pawel Pabian via RT
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)

[perl #132349] [REGRESSION] $*IN.getc not blocking on macOS

2017-10-23 Thread Pawel Pabian via RT
> 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.