Problems? Is your data what you think it is? | |
PerlMonks |
Re: Printing both to console and Fileby soonix (Canon) |
on Apr 17, 2017 at 12:49 UTC ( [id://1188131]=note: print w/replies, xml ) | Need Help?? |
The problem is that IO::Tee->new gives you a new handle, and your select call only changes the default file handle of print from STDOUT to the new handle.
It seems to me, that wrapping your code into Capture::Tiny->tee (which internally uses IO::
In Section
Seekers of Perl Wisdom
|
|