Hi Todd, I'm trying to follow what you're doing (below in Terminal app on
MacOS):
~$ raku
Welcome to 퐑퐚퐤퐮퐝퐨™ v2021.06.
Implementing the 퐑퐚퐤퐮™ programming language v6.d.
Built on MoarVM version 2021.06.
To exit type 'exit' or '^D'
> print Buf.new(0x84, 0x73, 0x77, 0x84, 0x79).decode("utf8-c8") ~
>print Buf.new(0x84, 0x73, 0x77, 0x84, 0x79).decode("utf8-c8") ~ "\n"
�x84sw�x84y
On 6/19/22 02:30, William Michels via perl6-users wrote:
On Sun, Jun 19, 2022 at 2:16 AM ToddAndMargo via perl6-users
wrote:
On 6/19/22 02:14, ToddAndMargo via perl6-users wrote:
On Sun, Jun 19, 2022 at 12:55 AM ToddAndMargo via perl6-users
wrote:
Hi All,
Hi All,
If you were wondering what I was up to, this is it.
This is originally in Open Document Test (.odt) format,
so I do not know how well it will translate to text.
If you want the original document, I will email it
to you. It is a lot pretties and you can
on the Table of Contents to jump
On 6/19/22 03:06, ToddAndMargo via perl6-users wrote:
On 6/19/22 00:33, ToddAndMargo via perl6-users wrote:
Hi All,
I have a string:
> my Str $x = "1BB67AE85A";
1BB67AE85A
which has the hexadecimal values I want to
add to a buffer:
> my buf8 $y = buf8.new($x.base(16));
No such method
On 6/19/22 00:33, ToddAndMargo via perl6-users wrote:
Hi All,
I have a string:
> my Str $x = "1BB67AE85A";
1BB67AE85A
which has the hexadecimal values I want to
add to a buffer:
> my buf8 $y = buf8.new($x.base(16));
No such method 'base' for invocant of type 'Str'. Did you mean any of
On 6/19/22 00:33, ToddAndMargo via perl6-users wrote:
Hi All,
I have a string:
> my Str $x = "1BB67AE85A";
1BB67AE85A
which has the hexadecimal values I want to
add to a buffer:
> my buf8 $y = buf8.new($x.base(16));
No such method 'base' for invocant of type 'Str'. Did you mean any of
On Sun, Jun 19, 2022 at 2:16 AM ToddAndMargo via perl6-users
wrote:
>
> On 6/19/22 02:14, ToddAndMargo via perl6-users wrote:
> >
> >> On Sun, Jun 19, 2022 at 12:55 AM ToddAndMargo via perl6-users
> >> wrote:
> >>>
> >>> Hi All,
> >>>
> >>> https://docs.raku.org/routine/encode
> >>>
> >>> multi
On 6/19/22 02:14, ToddAndMargo via perl6-users wrote:
On Sun, Jun 19, 2022 at 12:55 AM ToddAndMargo via perl6-users
wrote:
Hi All,
https://docs.raku.org/routine/encode
multi method encode(Str:D $encoding = 'utf8', :$replacement, Bool()
:$translate-nl = False, :$strict)
shows "ascii" and
On Sun, Jun 19, 2022 at 12:55 AM ToddAndMargo via perl6-users
wrote:
Hi All,
https://docs.raku.org/routine/encode
multi method encode(Str:D $encoding = 'utf8', :$replacement, Bool()
:$translate-nl = False, :$strict)
shows "ascii" and "utf8" as possible values for
"$encoding".
I tool a
Hi Todd,
It's great that you've delved into the "encode" docs.
However to answer your question, I think you want to look at the
"encoding" routine page:
https://docs.raku.org/routine/encoding#class_IO::Handle
Here's the list on that page:
utf8
utf16
utf16le
utf16be
utf8-c8
iso-8859-1
Hi All,
https://docs.raku.org/routine/encode
multi method encode(Str:D $encoding = 'utf8', :$replacement, Bool()
:$translate-nl = False, :$strict)
shows "ascii" and "utf8" as possible values for
"$encoding".
I tool a guess and found out "utf16".
Where are the rest of the values
Hi All,
I have a string:
> my Str $x = "1BB67AE85A";
1BB67AE85A
which has the hexadecimal values I want to
add to a buffer:
> my buf8 $y = buf8.new($x.base(16));
No such method 'base' for invocant of type 'Str'. Did you mean any of
these: 'Bag', 'Date', 'Hash', 'are', 'asec', 'hash', 'take'?
Typo.
Should have been:
append to Buf question
And in my Keeper, I keep typing "bugger" instead
of "buffer". Can't win.
On 6/18/22 22:16, Bruce Gray wrote:
On Jun 18, 2022, at 10:42 PM, ToddAndMargo via perl6-users
wrote:
On 6/16/22 10:10, Rick Bychowski wrote:
sub MAIN($n = 20) {
.say for factors($n); # Nil
}
I thought `MAIN` was a reserved variable. Am
I missing something?
MAIN has a special
On 6/18/22 22:58, Bruce Gray wrote:
If all you want is to append 0xBB to $y, either of these will work:
$y ~= Buf.new(0xBB);
$y.append(0xBB);
Did not realize I could use buf new like that. Thank you!
Append numbers to a buffer:
> $x
Buf:0x<41 42 43 44>
> $x.append( 0xDD );
On 6/18/22 22:58, Bruce Gray wrote:
From just looking at your code, I am not clear on what you are trying to do.
I am updating my Keeper on buffers. I have four of them
that are a mess and I an going to consolidate them into
a single .ODT (open document text) file with an index.
17 matches
Mail list logo