New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature: three-argument open() for reading stderr, not stdout #9092
Comments
From @epaCreated by @epaTo read stdout from a command you can say open FH, '-|', 'echo', 'hello'; But this gives no straightforward way to read stderr. You can go back There is IPC::Open3, but that is heavyweight for the case when all you I hope it would be straightforward to add a feature like open FH, '-2|', 'echo', 'hello' which gives you a filehandle reading the command's standard error, and Perl Info
|
From @davidnicolOn 10/30/07, via RT Ed Avis <perlbug-followup@perl.org> wrote:
this gives you a stderr-capturing backtick variant kind of thing; but sub GimmeStdErr(@){ # ... bangles, tangles and spaghetti! Here's the tested version: $ ls nonexistent > /dev/null $ perl -le 'exec qw/ls nonexistent/' $ perl -le 'pipe R,W; if(fork){close W; print "got: ".<R>}else{close R; open ST |
The RT System itself - Status changed from 'new' to 'open' |
From zefram@fysh.orgThe proposed feature is too esoteric to be worth adding to the core. -zefram |
@cpansprout - Status changed from 'open' to 'rejected' |
Migrated from rt.perl.org#47031 (status was 'rejected')
Searchable as RT47031$
The text was updated successfully, but these errors were encountered: