Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??
my first japh for a while. deconstructions welcome...
#!/usr/bin/perl -w use strict; my$c=sub{$^A=~s~.~~g;formline"@<",($_[!eof 0]);$^A;};my$q="08215E2 580 B1258071258091 0 4 2 0 0 22580C21240282580DE25 816F0C20F02580CA2580 5 1 1A000A 258015258 1342581AF 0C2064 1A41F4 0D611625 81 3C 25 80 C6 258 0D6 0C 2 1E B1F 11A0 2 580421F40A0";my$g=sub{$_=shift;$_=hex('ff')-hex ;sprintf('%02x',$_)};my@data;for$a( 0..15 ){for$b( 0..15 ){push@data ,sprintf'%x%x',$a,$b}}$a=1;my@data2=map{$a=!$a;$a?$_:&$g($_)}@data;$"= "";my$data="@data2"; my $d = sub{m=(.)=while$_=shift;$1};my$f=sub{ (wantarray)?&{pop@_}(pop@_):&{shift@_}(shift@_)};$q=~s[[^\S]]{}g;print chr hex((hex$1<501)?&$f(substr($data,hex$1,2),$d).&$d(substr($data,hex $2,7)):&$f(substr($data,hex$2,4),$c))while$q=~m/(\S{3})(\S\S {2} )/xg;

In reply to indirection by iamcal

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, 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, 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.
  • Log In?
    Username:
    Password:

    What's my password?
    Create A New User
    Domain Nodelet?
    Chatterbox?
    and the web crawler heard nothing...

    How do I use this?Last hourOther CB clients
    Other Users?
    Others pondering the Monastery: (1)
    As of 2024-07-22 02:16 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?

      No recent polls found

      Notices?
      erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.