use Fcntl ':seek'; ... # your code here [download]
In reply to Re: Question on seek() by borisz in thread Question on seek() by Joe_Cullity