my first japh

B

Bryan Castillo

Here is my first attempt at a JAPH. Any pointers on how to shorten
it up more and obscure it?

$|++;print"\033[2J";$f="\033[5;%dH%s";$x=33;END{print"\n\n"}
@_=map{[--$x,$_]}split//,'rekcaH lreP rehtonA tsuJ';
select'','','',(printf$f,@{splice@_,rand@_,1})/10 while(@_);
 
B

Bryan Castillo

LaDainian Tomlinson said:
Bryan Castillo said:
Here is my first attempt at a JAPH. Any pointers on how to shorten
it up more and obscure it?

$|++;print"\033[2J";$f="\033[5;%dH%s";$x=33;END{print"\n\n"}
@_=map{[--$x,$_]}split//,'rekcaH lreP rehtonA tsuJ';
select'','','',(printf$f,@{splice@_,rand@_,1})/10 while(@_);

I actually wrote my first a few days ago too (in my signature). Can't offer
any advice on obscuring yours, but you may consider only using double quotes
so that the whole command is executable from a command line using single
quotes (i.e., perl -e '<code>'). Other than that, I like it. Made me look
up select()...

allright then...

perl -e '$|++;sub Z{printf@_};@_=map{[--($X||=33),$_]}split//,",rekcaH lreP ".
"rehtonA tsuJ";Z "\033[2J";eval"map{select".(qq!"",!x3)."(Z \"\\033[5;%dH%s\",".
"\@{splice"."\@_,rand\@_,1})/10}(1..".@_.")";Z "\033[20;1H"'

(I guess I should mention this only works with a terminal that
accepts ANSI escape sequences.)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,007
Latest member
obedient dusk

Latest Threads

Top