I've been using regular expressions on LZW compressed data recently

Interesting concept... Anyway, I guess if I was trying to do something like this, I'd just be sure to redirect the output of re 'debug' to a file, and inspect that when I want to with something other than a tty ("od", maybe, or some other hex-mode capable viewer/editor).

hv's idea is pretty cool, but ascii control codes (\x00 - \x1F, \x7F) are still control codes, even when they're "utf8" -- because all ascii code points are already utf8 anyway, by definition. (Perl's internal distinction between a "string of octets" and a "string of utf8" is just that: perl's internal distinction; once printed to some output, there is no difference for this range of code points.)

And \x{0080} - \x{009F} aren't properly displayable either... who knows what you'll see when you feed these to a console -- even one that's unicode savvy?


In reply to Re: vis-like re 'debug' by graff
in thread vis-like re 'debug' by diotalevi

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.