|We don't bite newbies here... much|
Can't capture STDERR to Variableby Skeeve (Vicar)
|on Jul 21, 2011 at 10:11 UTC||Need Help??|
Skeeve has asked for the
wisdom of the Perl Monks concerning the following question:
Maybe it's something very obvious to anyone but me? ;)
I want to analyze an external program's STDOUT and STDERR and don't like to redirect STDERR to a file which I later have to read, and delete.
So I thought I'd redirect STDERR to a variable like this:
I expected $x to read "/some/nonexisting/path: No such file or directory" but it's simply empty.
Does anyone of you see what's wrong and can give me a hint?