in reply to Can't capture STDERR to Variable
Thanks to all of you!
Capture::Tiny looks promising and I will consider it for a rewrite of my script.
For my task at hand, merging STDOUT and STDERR with "2>&1" is sufficient, but I don't like it as a "solution". I think it is just a workaround.
And to answer moritz' Question: Yes! ls is just an example. The real program I call is openssl.
s$$([},&%#}/&/]+}%&{})*;#$&&s&&$^X.($'^"%]=\&(|?*{%
+.+=%;.#_}\&"^"-+%*).}%:##%}={~=~:.")&e&&s""`$''`"e
|
---|
In Section
Seekers of Perl Wisdom