.------[ Kipp, James wrote (2002/10/31 at 09:53:10) ]------
 | 
 |  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 ?
 |  
 `-------------------------------------------------

    Actually when the third argument ( aka WHENCE ) is set to zero it
    means "Set the new position to the second argument".  So it's not
    saying "Go to the end and seek back 2 bytes" it's simply saying seek
    to size - 2 which happens to be 2 bytes before the end. 

    Does that make sense? 

 ---------------------------------
   Frank Wiles <[EMAIL PROTECTED]>
   http://frank.wiles.org
 ---------------------------------


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

Reply via email to