Do the tell() before you read the line. Otherwise, as you've noticed, you're one line too late.
In reply to Re: Re: Re: FILE operation in PERL by dws in thread FILE operation in PERL by ramesh_nathan