in reply to Re^3: Having Access to a file two times
in thread Having Access to a file two times

You mean ..
seek FH, 0, 0;
.. assuming the aim is to rewind back to the start.

Replies are listed 'Best First'.
Re^5: Having Access to a file two times
by jwkrahn (Abbot) on Sep 21, 2008 at 11:22 UTC

    Or even better:

    use Fcntl qw/:seek/; seek FH, 0, SEEK_SET or die "Cannot seek on $filename: $!";
Re^5: Having Access to a file two times
by AnomalousMonk (Archbishop) on Sep 21, 2008 at 22:11 UTC
    Quite right!   Looks like I need to take another look at the seek docs.