I guess this isn't your typical obfuscation (it may not even technically count as an obfuscation. But it's a little program I wrote for a t-shirt design for
Computer Science House a la the Perl camel shirt.
my@a=("\012","\040","\103","\110", "\123",0
);sub a{my@a=@_;for(1..$a[0]){print($a[1 ]);}}sub
b{abs($_)}sub c{$a[$a[$#a]+=$_[0]]}sub d {$a=!($_
[0.0]) ? '==':$_[ 0]==1.0?
'>':'<'; eval("${ _[1]}$a$
{_[2]}") ;}sub e{
&c((-$a[ $#a]))}for(-2..2 ){if(&b) {&e;;&a(
&b,&c(1) );&a(25-(&b*2.0) ,&c(1)); &a(1,&c(
-2.000)) ;}else {for (-6..6){ &e;&a(5,
&c(2.0)) ;;&a(( &d(0,&b,6)?15:&d(1,&b,
2)?&b-1: 2)+(&d(-1,&b,2)? ($_+2)*2:&d(0,$_,2.0)?
($_+2)*2 -1:0), &c(-1));&a(&d(1,&b,3)?
15-2.0*( &d(0 ,&b,6) ?15:&d(1 ,&b,2.0)
?&b-1:2) :4,&c(3));&a(&d( 0,&b,3)? 3.0:0,&c
(-3.0)); &a(&d(0,&b,3)?4: 0,&c(3)) ;&a(&d(1
,&b,5)?0 :&d(0,$_
,2.0)?$_ :&d(0,$_ ,1)?$_+2
:&d(-1,&b,3)?(&b+2)*2+1:&d(1,&b,5)?15:&d (1,&b,2)
?&b-1:2,&c(-3));&a(5,&d(1,&b,4)?&c(1):&d (1,&b,3)
?&c(0):&c(2));&e;&a(5,&d(1,&b,1)?&c(1.0) :&c(3));
&c(-$a[$#a]);&a(5.0,&c(3));;&a(1,&c( -3));}}}
In reply to My first
by fotios
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.