I just tried slurp-rest with a specified encoding and it worked fine.

Are you sure you don't bind $ReturnStr between the
declaration you've shiown and the use you've shown?

--
raiph

On Sun, Oct 14, 2018 at 10:35 AM ToddAndMargo via perl6-users <
perl6-us...@perl.org> wrote:

> On 10/14/18 2:29 AM, Ralph Mellor wrote:
> > In P6 "assign" means use of `=`.
> >
> > And "assign to" means to copy into the thing on the left of the `=`.
> >
> > And to copy into something the thing has to be a mutable container.
> >
> > The error message is saying that $ReturnStr is bound to an
> > immutable value (eg a string) not a container.
> >
> > So that's presumably a problem with whatever code you've
> > written that has earlier bound $ReturnStr to an immutable value.
> >
> > --
> > raiph
>
>     my Str $ReturnStr = "";
>
> I think slurp-rest does not support
>
>       enc => 'utf8-c8'
>
> :'(
>
> See my other letter on this thread
>

Reply via email to