Re: Q: Is there a reason why I can't do this?

2010-12-28 Thread Daniel Carrera
On Tue, Dec 28, 2010 at 5:27 AM, yary wrote: > On Mon, Dec 27, 2010 at 8:50 PM, Daniel Carrera > wrote: > > > > So TTIR just means that any two terms must be separated by something, > like > > an operator (2+5). Which basically is common sense and I'm actually > > surprised to hear that in Perl

Re: Q: Is there a reason why I can't do this?

2010-12-28 Thread Chas. Owens
On Tue, Dec 28, 2010 at 05:13, Daniel Carrera wrote: > On Tue, Dec 28, 2010 at 5:27 AM, yary wrote: >> >> On Mon, Dec 27, 2010 at 8:50 PM, Daniel Carrera >> wrote: >> > >> > So TTIR just means that any two terms must be separated by something, >> > like >> > an operator (2+5). Which basically is

reading binary stream?

2010-12-28 Thread Hiroki Horiuchi
Hello. This program -- #!/usr/bin/env perl6 use v6; my $h = open '/dev/urandom', :r; loop (;;) { $h.getc; } -- spits an error below. -- Malformed UTF-8 string in 'IO::getc' at line 5457:CORE.setting in main program body at line 7:./getc.p6 -- How can I fix the problem? Thank you. -- Hir

reading binary stream?

2010-12-28 Thread Hiroki Horiuchi
Hello. This program -- #!/usr/bin/env perl6 use v6; my $h = open '/dev/urandom', :r; loop (;;) { $h.getc; } -- spits an error below. -- Malformed UTF-8 string in 'IO::getc' at line 5457:CORE.setting in main program body at line 7:./getc.p6 -- How can I fix the problem? Thank you. -- Hir

Re: reading binary stream?

2010-12-28 Thread Andrew Whitworth
That looks like a Parrot problem, trying to force input characters to UTF8. Can you open a ticket at trac.parrot.org for it? Thanks --Andrew Whitworth On Tue, Dec 28, 2010 at 5:41 AM, Hiroki Horiuchi wrote: > Hello. > > This program > -- > #!/usr/bin/env perl6 > > use v6; > > my $h = open '/de

Re: reading binary stream?

2010-12-28 Thread Moritz Lenz
Hi, On 12/28/2010 03:30 PM, Hiroki Horiuchi wrote: > How can I fix the problem? The following works right now in Rakudo, but I don't know if it conforms to the spec: my $h = open '/dev/urandom', :bin; $*OUT.write: $h.read(10) note that read() returns a Buf, which can be printed out again with w

Various questions

2010-12-28 Thread Daniel Carrera
Hello, I have a few miscellaneous questions: 1) Does anyone know what a "Parcel" is? <1 2 3 4>.WHAT => Parcel() <1 2 3 4 ; 2 3 4 ; 5>.WHAT => Parcel() 2) How do you figure out the length of an array? The "scalar" function is gone. I tried "len", "length" and "size" without success. 3) Mor

Re: Various questions

2010-12-28 Thread Tadeusz Sośnierz
On 29-12-2010 00:32:40, Daniel Carrera wrote: > Hello, > > I have a few miscellaneous questions: > > 1) Does anyone know what a "Parcel" is? I'm never sure, but it's something like a list :) > > 2) How do you figure out the length of an array? The "scalar" function > is gone. I tried "len", "l

Re: Various questions

2010-12-28 Thread Will Coleda
On Tue, Dec 28, 2010 at 6:32 PM, Daniel Carrera wrote: > 1)  Does anyone know what a "Parcel" is? > > <1 2 3 4>.WHAT  => Parcel() > <1 2 3 4 ; 2 3 4 ; 5>.WHAT  => Parcel() Here's a link to some docs on Parcel: http://perlcabal.org/syn/S08.html#Capture_or_Parcel You can use: http://perlcabal.org/

Re: Various questions

2010-12-28 Thread Daniel Carrera
Thanks. On Wed, Dec 29, 2010 at 12:51 AM, Will Coleda wrote: > On Tue, Dec 28, 2010 at 6:32 PM, Daniel Carrera wrote: >> 1)  Does anyone know what a "Parcel" is? >> >> <1 2 3 4>.WHAT  => Parcel() >> <1 2 3 4 ; 2 3 4 ; 5>.WHAT  => Parcel() > > Here's a link to some docs on Parcel: > http://perlca

[perl #81402] 32bit and large whole numbers

2010-12-28 Thread via RT
# New Ticket Created by LeifD # Please include the string: [perl #81402] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=81402 > Hello! I use Rakudo git. At the perl6 prompt I type the number 600851475143, and get -44394629

[perl #81428] [BUG] Duration disallows some numeric operations with a number as the other argument in Rakudo

2010-12-28 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #81428] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=81428 > I just got "Can't exponentiate a Duration" in real-world code. could someone explain to

Questions for Survey about Perl

2010-12-28 Thread Gabor Szabo
Hi, I am preparing a survey of the Perl Ecosystem which will take the TPF survey and extend it. We will have questions about usage of Perl 5 and we think there should be also questions about Perl 6. So far I came up with only one: How much Perl 6 do you know ? answers: - none - I read

Re: reading binary stream?

2010-12-28 Thread Hiroki Horiuchi
Hello. Malformed UTF-8 string in 'IO::getc' at line 5457:CORE.setting It was a bug of rakudo-star-2010.11. recent copy of rakudo (8f10c4b94ea6) is free of this problem. Regards, Hiroki Horiuchi