in reply to
Redirecting STDOUT from internal function with 5.6.1 restrictions
Looks to me like the docs of Test.pm need to be improved. If you look into the source you can see that the module makes a reference to the STDOUT as soon as it's used and then prints to that reference.
Anyway it seems that all you need to do is this:
open $Test::TESTOUT, '>', $stdout;
to redirect the output and
to switch it back.
We'd like to help you learn to help yourself|
Look around you, all you see are sympathetic eyes
Stroll around the grounds until you feel at home
-- P. Simon in Mrs. Robinson