in reply to How to make a copy of filehandle

Have a look at seek. You cannot store the file handle as you desire but the position in the file using tell and later go back using seek.

UPDATE: A few seconds too late I was.

Replies are listed 'Best First'.
Re^2: How to make a copy of filehandle
by LanX (Saint) on Apr 09, 2013 at 08:32 UTC
    > UPDATE: A few seconds too late I was.

    so what? =)

    No reason to edit or strike your post!!!

    Cheers Rolf

    ( addicted to the Perl Programming Language)

Re^2: How to make a copy of filehandle
by loituma (Initiate) on Apr 09, 2013 at 08:29 UTC

    Thanks to you two! I think this will do it. Easy :)

    ps : yes I am aware $file isn't file name, I just didn't know how to write what I wanted.