Subject: | exception inside of capture'd routine doesn't reset file handles |
If an exception is thrown within the capture'd subroutine, capture
doesn't reset STDIN & STDOUT to what it was before the call. $@ seems to
be passed along ok. I've attached example code which exhibits the bug.
As written, it should output to STDOUT, STDERR, and a log file, but only
the log file is written to.
If the die() is removed from within the captured routine the output to
STDOUT and STDERR gets through.
Thanks,
Diab
Subject: | ttt |
Message body not shown because it is not plain text.