PerlIO* outstream = IoOFP( sv_2io(out_fh_ref_sv) ); PerlIO* instream = IoIFP( sv_2io(in_fh_ref_sv) );