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;
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: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.