Hi,
Here is my first try in OOP "Obfuscated Oriented Perl" :)
This is the "packed" version, and I also made a more aesthetic "unpacked" version in my "scratchpad".
#(export LINES;export COLUMNS;perl llamatron.pl)
$"=($ENV{COLUMNS}||"80")-9;$;=($ENV{LINES}||"24"
)-7;$#=`clear`;$%=$==0;$*=$,=$=^1;while(<DATA>){
s/ //g;$_=unpack"u*",$_;split/[O0]/;$_[0]=~y
/1234/ _-/;$_[1]=~y/5678/ _-/;@{$ARGV[0]}[$.]=
$_[0];@{$ARGV[2]}[$.]=$_[1];$_[0]=~y/`'\\\/
/'`\/\\/;$_[1]=~y/`'\\\//'`\/\\/;@{$ARGV[1]}[$.]
=join("",reverse(split(/(.)/,$_[0])));@{$ARGV[3]
}[$.]=join("",reverse(split(/(.)/,$_[1])));}@INC
= qw(2 2 2 2 0 0 0 0);$-=0;for(;;){print$#."\n"x
$%;$/=shift@INC;foreach(@{$ARGV[$/+$-]}){print
" "x$=."$_\n";}push@INC,$/;$%+=$*;$=+=$,;$*=$%>=
$;?-1:$*;$*=$%<=0?1:$*;$,=$=>=$"?-1:$,;$,=$=<=0?
1:$,;$-=$,==-1?1:0;select undef,undef,undef,1/10
;}
__DATA__
0, 3) ?, C) ?, 4\ U- E\ V- 5\ U, `` `
0, B\ Q7 "\ T8 #` U+ S9 <+ SA @3 P` `
0+ S, S, R\ R, 4\ O- S< W+ S8 U, `` `
0? %P O? #$ R, 3` O? 'Q <- C4 V3 P` `
08 &! @8 #( Q, D] @8 &` V8 #8 U, `` `
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.