What is the correct way to do this with pipes.
It's an FAQ! How can I open a pipe both to and from a command?
However, in the specific case of curl, my preferred answer is: don't shell out in the first place but use a module instead. eg: LWP::UserAgent, LWP::Simple, HTTP::Tiny, Furl, Net::Curl::Easy, etc., etc.
In reply to Re: capturing stdout of pipe
by hippo
in thread capturing stdout of pipe
by brscvs
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |