
IO::Capture::Tie_STDx;

use IO::Capture::Tie_STDx;
tie *STDOUT, "IO::Capture::Tie_STDx";
@$messages = <STDOUT>;
untie *STDOUT;

The module IO::Capture::Tie_STDx is a small utility module for use by IO::Capture derived modules. See IO::Capture::Overview It is used to tie STDOUT or STDERR.