So I think the problem comes down to finding a way of tying STDERR to STDOUT, within the code. Googling for perl tying stderr to stdout is giving me some ideas.
For instance read: the basics of STDERR redirection especially the 1 reply.
In reply to Re: Perl Tk stderr to show in the Tk gui text widget
by zentara
in thread Perl Tk stderr to show in the Tk gui text widget
by john.tm
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |