in reply to
rerouting STDOUT
You will find the answer from perldoc
perldoc:open
All is well
Comment on
Re: rerouting STDOUT
Download
Code
In Section
Seekers of Perl Wisdom