in reply to file handing

If you want read and write access of a file, you can use
open(FILEHANDLE,"+<filename.txt");

Replies are listed 'Best First'.
Re^2: file handing
by blazar (Canon) on May 30, 2007 at 12:20 UTC
    open(FILEHANDLE,"+<filename.txt");

    Indeed, that's what he wrote 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: