Thanks. I looked throught Programming perl but did not find much. Ok, I see
i misread the statement and ther are only 3 params. Here is how I read this
statment:
seek(FH,(-s "foo.txt")-2,0);

seek back 2 bytes from the end of the file ?

> -----Original Message-----
> From: Frank Wiles [mailto:frank@;wiles.org]
> Sent: Thursday, October 31, 2002 9:38 AM
> To: Kipp, James
> Cc: [EMAIL PROTECTED]
> Subject: Re: Question about seek, Was: Trailing 5 lines of a file
> 
>> 
>     Actually there are only three.  FH, tell(FH)-2, and 0. If 
> you use 2
>     for the WHENCE value you can use negative values for the 
> position to
>     seek to a position relative to the end of the file. 
> 
>     You might try Programming Perl or the Cookbook for more info on
>     using seek(). 
>  


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to