in reply to Re^2: STDERR Restore after redirect
in thread STDERR Restore after redirect
I blocked the call to sendmail and the handles were restored and the print command elsewhere executed.
# SendMail(%mail) or die $Mail::sendMail::error;
unblocking and
#restore the file standard handles *STDOUT = $stdout; *STDERR = $stderr; close($fh); print "stdout 2\n";
results in: print() on closed filehandle $fh at /home/abcus/public_html/httpsdocs/cgi-bin/lib/perl/manageusers.pm line 1124. stderr 2
So sendMail call is causing problem
ugh
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: STDERR Restore after redirect
by choroba (Cardinal) on Apr 27, 2018 at 08:36 UTC | |
|
Re^4: STDERR Restore after redirect
by poj (Abbot) on Apr 27, 2018 at 19:28 UTC | |
|
Re^4: STDERR Restore after redirect
by huck (Prior) on Apr 28, 2018 at 22:45 UTC |