in reply to print complains about a file handle variable

Try this one:
print {$me->{S}} $outData;
BR