develooper Front page | perl.perl5.porters | Postings from April 2022

Re: Pre-RFC: readpipe with list args

Thread Previous
Dan Book
April 6, 2022 21:22
Re: Pre-RFC: readpipe with list args
Message ID:
On Wed, Apr 6, 2022 at 4:03 PM Felipe Gasper <>

> Hello,
>         Whereas Perl’s `system` and `exec` built-ins can accept a list of
> parameters to pass to the called program, `readpipe` only takes a single
> argument. Thus, if you want to pass parameters to the called program, you
> have to apply shell quoting, which is error-prone.
>         This is confusing and strange, I think. It would seem ideal for
> `readpipe` to work as `system` and `exec` do.
>         Thoughts?

I agree it is weird and restrictive, and this is the reason I wrote


Thread Previous Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About