On 3/9/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:

> After I use <> operator on s file handle, I need read it from head again. I
> found these is no rewind function, must I close it and open again?

I'm pretty sure you're looking for the seek() function, which moves
the access position to a given location in the file:

    seek(FH, 0, 0) or die "Can't seek to beginning of file: $!";

Hope this helps!

--Tom Phoenix
Stonehenge Perl Training

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to