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);
In reply to Re: Searching binary data
by dws
in thread Searching binary data
by Shendal
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |