.------[ Kipp, James wrote (2002/10/31 at 09:28:23) ]------ | | Where can i find more info on seek(), perldoc does not tell me much. it only | list 3 parameters, where David uses 4 in this code? what do negative values | in the offset represent? | | > seek(FH,tell(FH)-2,0); | `-------------------------------------------------
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(). --------------------------------- Frank Wiles <[EMAIL PROTECTED]> http://frank.wiles.org --------------------------------- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]