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.
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.
so what? =)
No reason to edit or strike your post!!!
( addicted to the Perl Programming Language)
I make decisions, and my brain carries them out
My brain makes the decisions, and I observe them (if I'm lucky)
I make some decisions, and my brain makes others
My spouse makes decisions and I and my brain carry them out
I wrote a program to relieve me and my brain from the burden of decision-making
The black-helicopter people project the decisions into my brain and then I do as ordered
Results (389 votes),