Pod Types that are *NOT* Pod::Block

2018-10-15 Thread Richard Hainsworth
In the type documentation for POD under Pod::Block it states: "Class for a Pod block, and base class for most other Pod classes." 'most' means inter alia 'not all'. So this statement is saying that there are *other* Pod classes which are not Pod::Block. I have tried to find these other classe

Re: Malformed UTF-8 ???

2018-10-15 Thread Curt Tilmes
On Mon, Oct 15, 2018 at 9:44 PM Brandon Allbery wrote: > Isn't the point that it's $ReturnStr that's throwing the immutable error, > not $RunString? That's what I see in the thread history > You're right. My thinko. Sorry. > On Mon, Oct 15, 2018 at 9:40 PM Curt Tilmes wrote: > >> >> >> On

Re: Malformed UTF-8 ???

2018-10-15 Thread Brandon Allbery
Isn't the point that it's $ReturnStr that's throwing the immutable error, not $RunString? That's what I see in the thread history. On Mon, Oct 15, 2018 at 9:40 PM Curt Tilmes wrote: > > > On Mon, Oct 15, 2018 at 9:34 PM ToddAndMargo via perl6-users < > perl6-us...@perl.org> wrote: > >> On 10/15/

Re: Malformed UTF-8 ???

2018-10-15 Thread Curt Tilmes
On Mon, Oct 15, 2018 at 9:34 PM ToddAndMargo via perl6-users < perl6-us...@perl.org> wrote: > On 10/15/18 9:04 AM, Larry Wall wrote: > > This almost certainly means that $ReturnStr is a read-only paramater to > > a routine. Add "is copy" to the declaration if you want to modify it. > > I am not s

Re: Malformed UTF-8 ???

2018-10-15 Thread ToddAndMargo via perl6-users
On 10/15/18 9:04 AM, Larry Wall wrote: On Sun, Oct 14, 2018 at 02:03:23AM -0700, ToddAndMargo via perl6-users wrote: : On 10/13/18 3:02 AM, ToddAndMargo via perl6-users wrote: : >Hi All, : > : > if  $StdOut  { $ReturnStr = $$proc.out.slurp-rest; } : > : >gives me : > : > Malformed UTF-8

Re: Malformed UTF-8 ???

2018-10-15 Thread ToddAndMargo via perl6-users
> On Sun, Oct 14, 2018 at 11:30 AM ToddAndMargo via perl6-users > mailto:perl6-us...@perl.org>> wrote: > > On 10/14/18 3:08 AM, Ralph Mellor wrote: > > This code works fine: > > > > spurt 'foo', 'bar'; > > my Str $ReturnStr = ""; > > $ReturnStr = 'foo'.IO.open.slurp-re

Re: Malformed UTF-8 ???

2018-10-15 Thread Larry Wall
On Sun, Oct 14, 2018 at 02:03:23AM -0700, ToddAndMargo via perl6-users wrote: : On 10/13/18 3:02 AM, ToddAndMargo via perl6-users wrote: : >Hi All, : > : > if  $StdOut  { $ReturnStr = $$proc.out.slurp-rest; } : > : >gives me : > : > Malformed UTF-8 : > : >How do I clean up $$proc.out.slur

Re: need :enc help?I

2018-10-15 Thread Ralph Mellor
https://docs.perl6.org/type/Pair#index-entry-%3A%24 Food for thought: For your previous question about encodings I didn't know the answer. So I went to doc.perl6.org and entered `encoding` in the search box. There were several exact matches. I saw the encoding routine, clicked it. I saw it was

Re: need :enc help?I

2018-10-15 Thread Laurent Rosenfeld via perl6-users
This is just a way to pass arguments in a method call. This is called the colon-pair syntax: https://docs.perl6.org/language/glossary#index-entry-Colon_Pair Le lun. 15 oct. 2018 à 12:08, ToddAndMargo via perl6-users < perl6-us...@perl.org> a écrit : > Hi All, > > Over on: > https://docs.p

need :enc help?I

2018-10-15 Thread ToddAndMargo via perl6-users
Hi All, Over on: https://docs.perl6.org/routine/slurp This I understand enc => "latin1" What is :$enc ? Many thanks, -T

Re: enc ?

2018-10-15 Thread ToddAndMargo via perl6-users
On Sun, Oct 14, 2018 at 10:23 AM ToddAndMargo via perl6-users mailto:perl6-us...@perl.org>> wrote: Hi All, Over on https://docs.perl6.org/routine/slurp # read entire file as Latin1 Str my $text_contents = slurp "path/to/file", enc => "latin1"; Where is t