in reply to Halve the difference
in thread Removing old records from log files

Very clever, tachyon ++. I first thought "How do you do binary search in a file with variable-length records?" Your answer is simple and effective.

Please consider linking to this from Tutorials.

Replies are listed 'Best First'.
Re: Re: Halve the difference
by tachyon (Chancellor) on Aug 27, 2001 at 11:18 UTC

    I have wrapped the concept in a module with a variety of useful widgets. It's at File::Seek

    cheers

    tachyon

    s&&rsenoyhcatreve&&&s&n.+t&"$'$`$\"$\&"&ee&&y&srve&&d&&print