spurt and array question

2020-11-13 Thread ToddAndMargo via perl6-users
Hi All, I am writing out an array of text lines to a file. I just can't help but thinking I am doing it the hard way. unlink( $Leafpadrc ); for @LeafpadrcNew -> $Line { spurt( $Leafpadrc, $Line ~ "\n", :append ); } If I spurt the array, it converts the array into a single text line.

Re: ps?

2020-11-13 Thread Curt Tilmes
On Fri, Nov 13, 2020 at 9:03 PM ToddAndMargo via perl6-users wrote: > Fedora 33 > > I know I can get this information from a system > call to "ps", but is there a way to tell if a > program in running from Raku? Running ps is probably as good as anything, but in linux you could always just poke

ps?

2020-11-13 Thread ToddAndMargo via perl6-users
Hi All, Fedora 33 I know I can get this information from a system call to "ps", but is there a way to tell if a program in running from Raku? Many thanks, -T

Junctions wrapped in singleton lists

2020-11-13 Thread Sean McAfee
I just tried making a sequence of junctions and found that each one ended up wrapped in a singleton list somehow: > ({ 1 | -1 } ... *)[^3] ((any(1, -1)) (any(1, -1)) (any(1, -1))) Strangely, I can set an ending condition that works like I would expect, but the sequence still produces