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

Pre-RFC: readpipe with list args

Thread Next
From:
Felipe Gasper
Date:
April 6, 2022 20:03
Subject:
Pre-RFC: readpipe with list args
Message ID:
23AD5E14-341C-4472-B8A2-87729B1B25A5@felipegasper.com
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?

cheers,
-Felipe

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