On Mon, Oct 15, 2018 at 9:44 PM Brandon Allbery <allber...@gmail.com> 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 <c...@tilmes.org> wrote:
>
>>
>>
>> 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 seeing it.
>>>
>>> sub RunNoShellAll( Str $RunString, Int $StdOut, Int $StdErr, Int $Code )
>>> {
>>>
>>
>> You are declaring $RunString as a read-only parameter.
>>
>> Try this:
>>
>>  sub RunNoShellAll( Str $RunString is copy, Int $StdOut, Int $StdErr, Int
>> $Code ) {
>>
>>

Reply via email to