No such thing as a small change | |
PerlMonks |
Re^4: capturing command outputby chrestomanci (Priest) |
on Jan 25, 2012 at 16:35 UTC ( [id://949929]=note: print w/replies, xml ) | Need Help?? |
Or are you suggesting the OP would run a different command in backticks than in his open? Why would he do that? No I am saying that plain backticks, without the 2>&1 shell redirection only captures stdout. If you add the shell redirection then of course you get stderr as well, because you asked the shell to do that for you. (Though as Eliya has demonstrated, it is actually perl intercepting the redirection shell trick and doing it within perl.)
In Section
Seekers of Perl Wisdom
|
|