|Perl: the Markov chain saw|
Re: How to make a copy of filehandleby jwkrahn (Monsignor)
|on Apr 09, 2013 at 08:46 UTC||Need Help??|
It looks like you want something like this:
I am trying to make a copy of the filehandle, that is *not* sharing file position.
Your code does not make a copy of the filehandle, nor does it share the file position. It tries to open the previous filehandle as if it were a file name. If you had opened $filename instead of $file you would have a different filehandle for the same file, but that still wold not solve your problem as it would be pointed at the beginning of the file.