<?xml version="1.0" encoding="windows-1252"?>
<node id="930967" title="Re^3: STDERR going to string" created="2011-10-12 06:13:20" updated="2011-10-12 06:13:20">
<type id="11">
note</type>
<author id="961">
Anonymous Monk</author>
<data>
<field name="doctext">
&lt;P&gt;&lt;I&gt;because re-opening STDERR decouples perl's STDERR from the called C library's STDERR &lt;/i&gt;
&lt;P&gt;It will probably work if you save/dup STDERR and restore it
&lt;C&gt;
open my $errsave, '&gt;&amp;', STDERR
  or do { print "couldn't dup STDERR: $!"; exit 2; };
open STDERR ...
...
open STDERR, '&gt;&amp;', $errsave
  or do { print "couldn't restore/dup STDERR: $!"; exit 2; };
&lt;/c&gt;</field>
<field name="root_node">
929318</field>
<field name="parent_node">
930629</field>
<field name="reputation">
0</field>
</data>
</node>
