Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Halve the difference

by VSarkiss (Monsignor)
on Aug 22, 2001 at 18:49 UTC ( #106969=note: print w/ replies, xml ) Need Help??


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.


Comment on Re: Halve the difference
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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://106969]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (6)
As of 2014-12-18 11:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (50 votes), past polls