in reply to Catch messages to STDERR

Sounds like you need IO::Capture::Stderr.