Update: how can a 3-line snippet have a bug?$ds = unpack "B*", $data; $ps = unpack "B*", $pattern; ($x = index $ds,$ps) >= 0 and print "Match at bit offset $x\n";
+++++++++ In theory, theory describes reality, but in reality it doesn't.
In reply to Re: Binary File Manipulation across Byte boundaries
by zude
in thread Binary File Manipulation across Byte boundaries
by tperdue
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |