in reply to Capturing com port output

What OS are you implementing this capture on? If you're on a Unix-like machine, this module may do the trick...

http://search.cpan.org/~andrewho/Sys-PortIO-0.1/PortIO.pm