I'm recycling this from an entry I had in one of the Obfuscation contests.
v("\150",sub{vec($q,0,32)=0x4a505420;
@w=split//,$q;return@w;});sub
k{$t="\x20cmp\x20";if($#_>0){($^W,$i
)=0;for$f(sort{$p="$_[0]{$a}{$_[1]}$t
$_[0]{$b}{$_[1]}\x20";for($#=1;$#<=(
$#_-2);$#++){$p.="or\x20$_[0]{$a}{$_[
$#]}$t$_[0]{$b}{$_[$#]}\x20";}$p.=";"
;eval$p;}keys%{$_[0]}){for$r(keys%{$_[
0]{$f}}){$s{$i}{$r}=$_[0]{$f}{$r};}$i++
;}return(\%s);}}sub p{print@_}for(keys
%s){for$e(@a){p("$s{$_}{$e}\x20");}p($/
);}sub v{$^X=~s/^.*(\/|\\)//;${$_[0]}=
{0,{"\x54","Journal","\120",$^X,"\x4a",
"Read"},1,{"\124","Today"=>"\x50",$^X=>
"\112","Hack"}};shift@_;k(\%${"\150"},
@a=&{shift@_});}
Cheers,
KM
In reply to Order by
by KM
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.