XP is just a number | |
PerlMonks |
Re^2: STDERR Restore after redirectby tultalk (Monk) |
on Apr 27, 2018 at 19:29 UTC ( [id://1213704]=note: print w/replies, xml ) | Need Help?? |
Hi. I will take a look As it now stands, code below works except for one quirk.
The mail is sent. The handles are restored as evidenced by stderr2 in my regular error log file and stderr/stdout in my pre-restore log file. What is gone in the nether world is the stdout2 and the printing of the HTML form to stdout back to client. If I don't close the handle, the form (text) is printed to the sendMail logfile. I put warns at beginning of the sub to print the html and at the end and both appear in the error log indicating execution of that block but no form returned to client. As I posted earlier, if I bypass the call to sendMail(), the form prints as expected. For some reason the call to print the form is not directed to the (opened)STDOUT nor to the (closed) $fh log handle. Perhaps lost in the mist of time and sitting at the earth moon L4 LaGrange point in a huge cloud of missing documents. I can't see anything in sendMail that could have such an effect. I shut off the debugging in sendMail which writes to stderr and no effect (except less output to the log naturally) I guess I have to just grunt my way through this until a revelation hits me. Scoping are weird!
In Section
Seekers of Perl Wisdom
|
|