in reply to Reading from a filehandle written to by a subroutine?
use FileHandle; ... $fh = new FileHandle; $fh->open("> file") or die $!; $object->cat($fh, $target); [download]