my $fh = IO::File->new_tmpfile or print "Unable to make new temp file: $!"; binmode($fh); $member->extractToFileHandle($fh);