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: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

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

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

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

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

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: 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

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

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

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

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: 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

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

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'

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 =

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

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 :-)

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: 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

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

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. >