in reply to Re: How do I search this binary file?
in thread How do I search this binary file?

If <HANDLE> in void context functioned as a scan rather than a read, that would be terrific and elegant.

Replies are listed 'Best First'.
Re: Re: Re: How do I search this binary file?
by kschwab (Vicar) on Aug 21, 2002 at 00:50 UTC
    It is a read, but in void context, it doesn't appear to be using excessive memory ( I suppose since it's not filling $_ or any other variable ).

    I did try this on a fairly large file (with large "records"), and didn't notice a significant growth in memory footprint compared to a smaller file.

    Did you have a different experience ? Update: Tried it on a really large file, and sure enough, it eats up VM :) Never mind...sounds like asking the gods to map <HANDLE> in a void context into a scan might be a good idea though...