Re: websearches on "perl6"

2018-10-08 Thread Joseph Brenner
Elizabeth Mattijsen wrote: >> Joseph Brenner wrote: >> Would anyone happen to know if there's a duckduckgo trick to get just >> perl6 links and not perl5? >> >> If you just append "perl6" it'll be mostly perl6 info in the top ten, >> but there tends to be at least some perl5 intermixed in it. >

Re: loop on a Buf/binary

2018-10-08 Thread Curt Tilmes
On Mon, Oct 8, 2018 at 7:53 AM ToddAndMargo via perl6-users < perl6-users@perl.org> wrote: > I take it that `Buf` is a special type of array that the normal > rules do not apply to. > I would say rather than each of them (Buf and Array) are special types of Positional -- they 'do' the Positional

Re: loop on a Buf/binary

2018-10-08 Thread ToddAndMargo via perl6-users
On 10/8/18 4:50 AM, ToddAndMargo via perl6-users wrote: On 10/8/18 4:25 AM, Curt Tilmes wrote: On Mon, Oct 8, 2018 at 7:21 AM ToddAndMargo via perl6-users mailto:perl6-users@perl.org>> wrote: >     I never have to say `$str[0..*]` when looping over a string.     Why? > >   

Re: loop on a Buf/binary

2018-10-08 Thread ToddAndMargo via perl6-users
On 10/8/18 4:25 AM, Curt Tilmes wrote: On Mon, Oct 8, 2018 at 7:21 AM ToddAndMargo via perl6-users mailto:perl6-users@perl.org>> wrote: >     I never have to say `$str[0..*]` when looping over a string. Why? > > > How do you loop over a string?  Doesn't 'for $str' j

Re: loop on a Buf/binary

2018-10-08 Thread ToddAndMargo via perl6-users
On 10/8/18 4:29 AM, ToddAndMargo via perl6-users wrote: On 10/8/18 4:20 AM, ToddAndMargo via perl6-users wrote: On 10/8/18 4:14 AM, Curt Tilmes wrote: On Mon, Oct 8, 2018 at 7:06 AM ToddAndMargo via perl6-users mailto:perl6-users@perl.org>> wrote:     $ p6 'my $fh=open "/home/linuxutil/To"

Re: loop on a Buf/binary

2018-10-08 Thread ToddAndMargo via perl6-users
On 10/8/18 4:20 AM, ToddAndMargo via perl6-users wrote: On 10/8/18 4:14 AM, Curt Tilmes wrote: On Mon, Oct 8, 2018 at 7:06 AM ToddAndMargo via perl6-users mailto:perl6-users@perl.org>> wrote:     $ p6 'my $fh=open "/home/linuxutil/To", :r; my Buf $f = $fh.read( 10 );     $fh.close; dd $f;

Re: websearches on "perl6"

2018-10-08 Thread ToddAndMargo via perl6-users
On 10/8/18 4:20 AM, Elizabeth Mattijsen wrote: Both are mentioned in that email. On 8 Oct 2018, at 13:16, ToddAndMargo via perl6-users wrote: On 10/8/18 1:49 AM, Elizabeth Mattijsen wrote: https://www.nntp.perl.org/group/perl.perl6.users/2018/10/msg5957.html Actually, I was looking for th

Re: websearches on "perl6"

2018-10-08 Thread ToddAndMargo via perl6-users
On 10/8/18 4:19 AM, ToddAndMargo via perl6-users wrote: On 10/8/18 4:16 AM, ToddAndMargo via perl6-users wrote: On 10/8/18 1:49 AM, Elizabeth Mattijsen wrote: https://www.nntp.perl.org/group/perl.perl6.users/2018/10/msg5957.html Actually, I was looking for the article you wrote about Perl 6 s

Re: loop on a Buf/binary

2018-10-08 Thread ToddAndMargo via perl6-users
On 10/8/18 4:14 AM, Curt Tilmes wrote: On Mon, Oct 8, 2018 at 7:06 AM ToddAndMargo via perl6-users mailto:perl6-users@perl.org>> wrote: $ p6 'my $fh=open "/home/linuxutil/To", :r; my Buf $f = $fh.read( 10 ); $fh.close; dd $f; for $f[0..*] -> $Byte { if $Byte == 0b00 {say "Binary"

Re: loop on a Buf/binary

2018-10-08 Thread ToddAndMargo via perl6-users
On 10/8/18 4:14 AM, Curt Tilmes wrote: On Mon, Oct 8, 2018 at 7:06 AM ToddAndMargo via perl6-users mailto:perl6-users@perl.org>> wrote: $ p6 'my $fh=open "/home/linuxutil/To", :r; my Buf $f = $fh.read( 10 ); $fh.close; dd $f; for $f[0..*] -> $Byte { if $Byte == 0b00 {say "Binary"

Re: websearches on "perl6"

2018-10-08 Thread Elizabeth Mattijsen
Both are mentioned in that email. > On 8 Oct 2018, at 13:16, ToddAndMargo via perl6-users > wrote: > > On 10/8/18 1:49 AM, Elizabeth Mattijsen wrote: >> https://www.nntp.perl.org/group/perl.perl6.users/2018/10/msg5957.html > > Actually, I was looking for the article you wrote > about Perl 6 si

Re: websearches on "perl6"

2018-10-08 Thread ToddAndMargo via perl6-users
On 10/8/18 4:16 AM, ToddAndMargo via perl6-users wrote: On 10/8/18 1:49 AM, Elizabeth Mattijsen wrote: https://www.nntp.perl.org/group/perl.perl6.users/2018/10/msg5957.html Actually, I was looking for the article you wrote about Perl 6 signatures.  And I was looking to see what else you had wr

Re: websearches on "perl6"

2018-10-08 Thread ToddAndMargo via perl6-users
On 10/8/18 1:49 AM, Elizabeth Mattijsen wrote: https://www.nntp.perl.org/group/perl.perl6.users/2018/10/msg5957.html Actually, I was looking for the article you wrote about Perl 6 signatures. And I was looking to see what else you had written (as articles).

Re: loop on a Buf/binary

2018-10-08 Thread Curt Tilmes
On Mon, Oct 8, 2018 at 7:06 AM ToddAndMargo via perl6-users < perl6-users@perl.org> wrote: > $ p6 'my $fh=open "/home/linuxutil/To", :r; my Buf $f = $fh.read( 10 ); > $fh.close; dd $f; for $f[0..*] -> $Byte { if $Byte == 0b00 {say > "Binary"; last;}else{say $Byte}}' > > Buf[uint8] $f = Buf[uint8].

Re: How do I address bytes in a Buf/binary variable?

2018-10-08 Thread ToddAndMargo via perl6-users
On 10/8/18 1:46 AM, Peter Pentchev wrote: On Mon, Oct 08, 2018 at 01:38:54AM -0700, ToddAndMargo via perl6-users wrote: On 10/8/18 1:34 AM, Peter Pentchev wrote: On Mon, Oct 08, 2018 at 01:25:31AM -0700, ToddAndMargo via perl6-users wrote: Hi All! Question: I am using `read` to read the first

Re: websearches on "perl6"

2018-10-08 Thread ToddAndMargo via perl6-users
On 10/8/18 1:49 AM, Elizabeth Mattijsen wrote: https://www.nntp.perl.org/group/perl.perl6.users/2018/10/msg5957.html :-)

loop on a Buf/binary

2018-10-08 Thread ToddAndMargo via perl6-users
$ p6 'my $fh=open "/home/linuxutil/To", :r; my Buf $f = $fh.read( 10 ); $fh.close; dd $f; for $f[0..*] -> $Byte { if $Byte == 0b00 {say "Binary"; last;}else{say $Byte}}' Buf[uint8] $f = Buf[uint8].new(87,111,114,100,80,114,111,0,0,0) 87 111 114 100 80 114 111 Binary To get the above to work,

Re: websearches on "perl6"

2018-10-08 Thread Elizabeth Mattijsen
https://www.nntp.perl.org/group/perl.perl6.users/2018/10/msg5957.html > On 8 Oct 2018, at 01:50, ToddAndMargo via perl6-users > wrote: > > On 10/7/18 11:06 AM, Elizabeth Mattijsen wrote: >>> On 7 Oct 2018, at 18:31, Joseph Brenner wrote: >>> Would anyone happen to know if there's a duckduckgo

Re: How do I address bytes in a Buf/binary variable?

2018-10-08 Thread Peter Pentchev
On Mon, Oct 08, 2018 at 01:38:54AM -0700, ToddAndMargo via perl6-users wrote: > On 10/8/18 1:34 AM, Peter Pentchev wrote: > > On Mon, Oct 08, 2018 at 01:25:31AM -0700, ToddAndMargo via perl6-users > > wrote: > > > Hi All! > > > > > > Question: I am using `read` to read the first 400 bytes of an u

Re: How do I address bytes in a Buf/binary variable?

2018-10-08 Thread ToddAndMargo via perl6-users
On 10/8/18 1:38 AM, ToddAndMargo via perl6-users wrote: On 10/8/18 1:34 AM, Peter Pentchev wrote: On Mon, Oct 08, 2018 at 01:25:31AM -0700, ToddAndMargo via perl6-users wrote: Hi All! Question: I am using `read` to read the first 400 bytes of an unknown file (could be a binary file).  The 40

Re: How do I address bytes in a Buf/binary variable?

2018-10-08 Thread ToddAndMargo via perl6-users
On 10/8/18 1:34 AM, Peter Pentchev wrote: On Mon, Oct 08, 2018 at 01:25:31AM -0700, ToddAndMargo via perl6-users wrote: Hi All! Question: I am using `read` to read the first 400 bytes of an unknown file (could be a binary file). The 400 bytes go into a variable of type "Buf". This is not a st

Re: How do I address bytes in a Buf/binary variable?

2018-10-08 Thread Peter Pentchev
On Mon, Oct 08, 2018 at 01:25:31AM -0700, ToddAndMargo via perl6-users wrote: > Hi All! > > Question: I am using `read` to read the first 400 bytes of an unknown file > (could be a binary file). The 400 bytes go into a variable > of type "Buf". This is not a string. > > p6 'my $fh=open "/home/l

How do I address bytes in a Buf/binary variable?

2018-10-08 Thread ToddAndMargo via perl6-users
Hi All! Question: I am using `read` to read the first 400 bytes of an unknown file (could be a binary file). The 400 bytes go into a variable of type "Buf". This is not a string. p6 'my $fh=open "/home/linuxutil/To", :r; my Buf $f = $fh.read( 400 ); $fh.close;' Now in $f, I want to look a