Re: a `pe4rl6 -c` error to fix

2018-06-20 Thread Brent Laabs
-c does compile time warnings, not runtime warnings. You can't make runtime warnings appear at compile time without using a BEGIN block. On Wed, Jun 20, 2018 at 9:59 PM, Todd Chester wrote: > > > > On Tue, Jun 19, 2018 at 10:50 PM, Todd Chester > wrote: > >> Dear Perl Developers, > >> > >>

Re: using run

2018-06-20 Thread Brandon Allbery
I don't manage the docs. But a ticket has already been opened: https://github.com/perl6/doc/issues/2111 On Thu, Jun 21, 2018 at 12:59 AM Todd Chester wrote: > > > On 06/20/2018 08:58 AM, Brandon Allbery wrote: > > A pipe is for communication with a process. "Piped to a file" means > > what?

Re: a `pe4rl6 -c` error to fix

2018-06-20 Thread Todd Chester
> On Tue, Jun 19, 2018 at 10:50 PM, Todd Chester wrote: >> Dear Perl Developers, >> >> Would you please fix this `perl6 -c` checker error? >> >> $ perl6 -v >> This is Rakudo version 2018.05 built on MoarVM version 2018.05 >> implementing Perl 6.c. >> >> >> The checkers passes this line with

Re: using run

2018-06-20 Thread Todd Chester
On 06/20/2018 08:58 AM, Brandon Allbery wrote: A pipe is for communication with a process. "Piped to a file" means what? What's the process you're communicating with? More to the point, "run" is intended to be lower level, specifically so you can directly control things. Things like

Re: using run

2018-06-20 Thread Todd Chester
On 06/20/2018 08:15 AM, Theo van den Heuvel wrote: Hi all, trying to make sense of the documentation on run: https://docs.perl6.org/routine/run. In particular the last part. I don't  understand the adverbs :out and : err there. Can I set it up so that the output is piped into a file

Re: a `pe4rl6 -c` error to fix

2018-06-20 Thread Will Coleda
It's a warning, not an error. On Tue, Jun 19, 2018 at 10:50 PM, Todd Chester wrote: > Dear Perl Developers, > > Would you please fix this `perl6 -c` checker error? > > $ perl6 -v > This is Rakudo version 2018.05 built on MoarVM version 2018.05 > implementing Perl 6.c. > > > The checkers passes

Re: using run

2018-06-20 Thread Theo van den Heuvel
Hi Brandon, I used the wrong term there. I meant to say: put in a file. Sorry for the confusion. Theo Brandon Allbery schreef op 2018-06-20 17:58: If you're going to use terms in a different way than what they actually mean, it's going to be difficult to produce something that does what you

Re: using run

2018-06-20 Thread JJ Merelo
El mié., 20 jun. 2018 a las 17:32, Theo van den Heuvel (< vdheu...@heuvelhlt.nl>) escribió: > Hi all, > > trying to make sense of the documentation on run: > https://docs.perl6.org/routine/run. > In particular the last part. I don't understand the adverbs :out and : > err there. > Posted as an

Re: using run

2018-06-20 Thread ToddAndMargo
On 06/20/2018 08:15 AM, Theo van den Heuvel wrote: Hi all, trying to make sense of the documentation on run: https://docs.perl6.org/routine/run. In particular the last part. I don't  understand the adverbs :out and : err there. Can I set it up so that the output is piped into a file directly?

Re: using run

2018-06-20 Thread Brandon Allbery
If you're going to use terms in a different way than what they actually mean, it's going to be difficult to produce something that does what you believe it should do *and* what it should actually do. A pipe is for communication with a process. "Piped to a file" means what? What's the process

Re: using run

2018-06-20 Thread Theo van den Heuvel
thanks. That helps Jonathan Scott Duff schreef op 2018-06-20 17:50: If you don't specify the :out adverb, then the output of the program you are running will be sent to standard output. Immediately when the program executes. If you specify the :out adverb, output from the program will be

Re: using run

2018-06-20 Thread Jonathan Scott Duff
If you don't specify the :out adverb, then the output of the program you are running will be sent to standard output. Immediately when the program executes. If you specify the :out adverb, output from the program will be available for capture via the $proc.out method. A similar thing applies

Re: using run

2018-06-20 Thread Simon Proctor
If you're wanting to run a command and have the output go directly to a file you might want to look at shell? https://docs.perl6.org/routine/shell You can still get back a Proc object and specify if you want access to the input, output of error handles. So if you wanted to call an external

using run

2018-06-20 Thread Theo van den Heuvel
Hi all, trying to make sense of the documentation on run: https://docs.perl6.org/routine/run. In particular the last part. I don't understand the adverbs :out and : err there. Can I set it up so that the output is piped into a file directly? If so how would I write that? I know I could use