in reply to Searching binary data
Two thoughts:
Setting up @hex is left as an exercise.while ( read(FILE, $buf, 512) ) { foreach ( $buf =~ m/./gs ) { $binhex .= $hex[ord($_)]; } }
Oh, and if you're on Win32, don't forget to binmode(FILE);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Searching binary data
by rnahi (Curate) on Mar 16, 2002 at 08:48 UTC |