Indeed, that's what hewrote in the first place, so I really cannot grasp the sense of your comment. OTOH the first and most important thing to do is to direct both him and you to andreas1234567's recommendations. But the greatest problem is that in all earnestness one can hardly make a sense of the OP's request too. I suspect that for some reason he's really after printing to FILEHANDLE something read from FILEHANDLE itself: