I've been using regular expressions on LZW compressed data recently and discovered that while use re 'debug' is insanely useful, it doesn't play well with binary data. Is there way to do something vis-like to the output? The following sample code produces some very unfriendly output for my PuTTY console. I found myself having to use reset(1) frequently to "fix" my console and occasionally had to just close it and get a new one.
use re 'debug'; $_ = join '', map chr, 0 .. 31, 128 .. 255; 1 while m{.}sg;
In reply to vis-like re 'debug' by diotalevi
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |