diotalevi has asked for the wisdom of the Perl Monks concerning the following question:
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;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: vis-like re 'debug'
by graff (Chancellor) on May 09, 2003 at 03:22 UTC | |
by diotalevi (Canon) on May 09, 2003 at 13:46 UTC | |
|
Re: vis-like re 'debug'
by hv (Prior) on May 09, 2003 at 02:59 UTC |