On 10/15/18 6:46 PM, Curt Tilmes wrote:
On Mon, Oct 15, 2018 at 9:44 PM Brandon Allbery <[email protected] <mailto:[email protected]>> 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 <[email protected] <mailto:[email protected]>> wrote: On Mon, Oct 15, 2018 at 9:34 PM ToddAndMargo via perl6-users <[email protected] <mailto:[email protected]>> 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 ) {
Guys, This is going through a rewrite. So, don't help me until I clean this up. I hope to have some time Friday, but maybe not. I will get back. -T
