On 3/15/19 3:02 AM, Peter Pentchev wrote:
On Fri, Mar 15, 2019 at 11:52:15AM +0200, Peter Pentchev wrote:
[snip]
3. The standard input stream in Perl 6 is called $*IN (think of it as
mostly equivalent to what <<>> and <> would read from in Perl 5,
...sorry about this part, I know it's not correct.
and pretty much the same thing as Perl 5's STDIN.
...this is the correct statement.
sub is-ours($line) {
$line ~~ /^ \s* $<pid> = [\d+] \s+ "zsh" \s .* \s+ $<elapsed> = [ <[- \d
:]> + ] $/
?? (~$/<pid> => pad-elapsed $/<elapsed>)
!! Any
}
Of course, you may need to modify this a bit if you don't want to look
for "zsh" processes... :)
G'luck,
Peter
Never did figure out why everything went into @x[0]