Syntactic Confectionery Delight | |
PerlMonks |
STDOUT STDERR and response code from external Linix commandby gdanenb (Acolyte) |
on Jan 04, 2012 at 20:02 UTC ( [id://946281]=perlquestion: print w/replies, xml ) | Need Help?? |
gdanenb has asked for the wisdom of the Perl Monks concerning the following question: I want to get both stdout and stderr into $var, and get correct $? I went through solutions in perlfac8 and forums The strange thing that I DON'T get sdterr in any case, as long as correct result code. perl version is 5.8.8, Linux RH 5
stdout when command is correct I get ok. I don't want to use additional *capture* modules.
Back to
Seekers of Perl Wisdom
|
|