Re: proc?
[email protected] (ToddAndMargo via perl6-users) Wed, 29 Oct 2025 04:10:36 -0700
| Newsgroups | perl.perl6.users |
|---|---|
| Message-ID | <[email protected]> |
On 10/29/25 4:04 AM, ToddAndMargo via perl6-users wrote: > On 10/29/25 4:00 AM, Bruce Gray wrote: >> >> >>> On Oct 29, 2025, at 05:51, ToddAndMargo via perl6-users <perl6- >>> [email protected]> wrote: >>> >>> Hi All, >>> >>> I use "run" a lot. >>> >>> https://docs.raku.org/routine/run >>> >>> It looks to me like "proc" is an OOP construction. >>> >>> Where do I find its declaration so I can figure out >>> what all its members are? (The above link does not >>> define it or I am blind.) >>> >>> So far I know: >>> $proc.exitcode >>> $proc.err.slurp(:close) >>> $proc.out.slurp(:close) >>> >>> Yours in confusion, >>> -T >> >> In https://docs.raku.org/routine/run , in the sentence "Runs an >> external command without involving a shell and returns a Proc >> object.", the word "Proc" is a link to https://docs.raku.org/type/Proc . >> >> That link contains the list of methods: >> new >> sink >> spawn >> shell >> command >> Bool >> pid >> exitcode >> signal >> >> Let's say "bleary-eyed"; kinder than "blind", and much more temporary :^) > > I see "exitcode", but I do not see .err or .out. > > Time to wash my eyes out? Found it where you said: method new(Proc:U: :$in = '-', :$out = '-', :$err = '-', Bool :$bin = False, Bool :$chomp = True, Bool :$merge = False, Str:D :$enc = 'UTF-8', Str:D :$nl = "\n", --> Proc:D) What is .bin? Binary? Binary what? Is somethings returing binary? What is .chomp? What is $enc? Encrypted? How does that work? Is .nl New Line? And I presume that is the returned text? Does it conflict with .bin?