http://qs321.pair.com?node_id=646880


in reply to How to use fseek in perl ??

Perl 5.6 had an excellent FAQ entry on this very concept that quite often helps to clear up this natural confusion. You can find the FAQ entry here.

The short answer is, use Tie::File.