Re: What are values with : called?
[email protected] (ToddAndMargo via perl6-users) Sun, 2 Nov 2025 18:31:00 -0800
| Newsgroups | perl.perl6.users |
|---|---|
| Message-ID | <[email protected]> |
On 11/2/25 4:55 PM, Joseph Brenner wrote:
> my $proc = run 'echo', 'Raku is Great!', :out, :err;
> $proc.out.slurp(:close).say; # OUTPUT: «Raku is Great!»
> $proc.err.slurp(:close).say; # OUTPUT: «»
Hi Joseph,
The default of both :out and :err is "-",
which is STDOUT and STDERR. This is
similar to curl's "--output -" which send
to the STDOUT.
What I find puzzling is where else would they
be going?
Can I modify :out to :out("eraseme.txt") and
have the output go to a file (eraseme.txt)
instead of STDOUT? That would be kind of cool.
Yours in puzzlement,
-T