That's great, I also found doc about this function, thank you, Tom and Ryan
 

> -----邮件原件-----
> 发件人: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 代表 
> Tom Phoenix
> 发送时间: 2006年3月10日 12:21
> 收件人: [EMAIL PROTECTED]
> 抄送: beginners@perl.org
> 主题: Re: how to rewind file?
> 
> 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
> 

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to