develooper Front page | perl.perl6.users | Postings from June 2018

Re: using run

Thread Previous | Thread Next
From:
Theo van den Heuvel
Date:
June 21, 2018 18:34
Subject:
Re: using run
Message ID:
0d856d003d450796f82369bbf2218af2@heuvelhlt.nl


Hi Brad,

Ha. Now that is exactly what I was looking for. It felt a bit clumsy 
having to first collect the material in a string and then print that 
string.
This is nice.

Thanks,

Theo

Brad Gilbert schreef op 2018-06-21 19:47:
> :out can take an argument
> 
...
> 
>     my $fh = open 'foo.txt', :w;
>     run 'echo', 'foo bar baz', :out($fh);
>     close $fh;

-

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About