Suppose we have:
sub test { print \"testing\\n\"; }
If there is a case where I want to have it print to stderr instead of stdout, i
This work for me
local *STDOUT; open(STDOUT, ">", \$Result); &test(); print $Result;