$stuff =~ /\x7F/
or
index($stuff, "\x7F") >= 0
I think the latter is faster.
These are better than checking the unpacked string because they won't match 07 folled by F3.
In reply to Re: Way to grep binary scalar without unpacking
by ikegami
in thread Way to grep binary scalar without unpacking
by Eradicatore
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |