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-rest: enc => 'utf8-c8'; say $ReturnStr; # bar
Try it with my layout: $ReturnStr = $$proc.out.slurp-rest( enc => 'utf8-c8' );