This is my first JAPH ever. It's not very clever, but it served well in learning a few principles about code obfuscation in general.
$V=sub{(@_)?return&$V(@_[1..$#_]),shift,eval{(++$::x==$::a*4+$::p*7+
$::h*4)?eval{eval{$::a?($::p?($::h?'':$::h++):$::p++):$::a++;};' ';}
:''}:();};$a=1;$_="42.redbig7ik6icy0adf3Hilfred1Preg1Zim8why5tonamb"
."itsfud56Jim9";~y#H420135-9bigZmwdfy#h\n #;s% %%g;split//;print&$V;
The next one has more effort. Actually, this one too is simple once you get the jist.
# The answer is 42.
$r=42+ 22;for(0..$r
*.4){( $_<4*2)?push@c,
split //,unpack ('b'.(
split //,'4' x4 .'2' x2 .'42')
[$_ ], int((4 ,2-4*.2
,4+2,2 -4*.2 ,4-4*.2
,2,4,4-4*.2)[$_ ])):'';
for(split//, (($c[$_])
?';': ':')x(
unpack ('C',(split//,
"Nn702,1" ."rv07?Z|7-6/+7"
."k~+,U4" )[-(2/2+$_)])-42).
'.'){!($_ eq'.')?(($_ eq':')?$r++:
--$r):print chr($r);}}
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.