http://www.perlmonks.org?node_id=568037


in reply to When I am bored, I usually...

#1. write some obfuscated code

Well, at least think about writing some obfuscated code.

Whether it gets written depends on how bored I am, how much free time I have, and (mostly) whether any good ideas come to mind.

By the way, I've found out the hard way that thinking about obfuscated code just before falling asleep is not a good way to get to sleep :-O


s''(q.S:$/9=(T1';s;(..)(..);$..=substr+crypt($1,$2),2,3;eg;print$..$/

Replies are listed 'Best First'.
Re^2: When I am bored, I usually...
by chargrill (Parson) on Aug 23, 2006 at 05:34 UTC

    Indeed, thinking about obfuscations or ANYTHING 'interesting' (whose definition depends on the one doing the thinking, naturally) is orthogonal to getting to bed on time.

    Conversely, it seems I don't tend to come up with anything interesting UNLESS I'm currently past "bedtime"... You should've seen how late I was burning the midnight oil for Breaking the indecipherable cipher, courtesy Charles Babbage.. Well, I guess it shows how late in the node :)



    --chargrill
    $,=42;for(34,0,-3,9,-11,11,-17,7,-5){$*.=pack'c'=>$,+=$_}for(reverse s +plit//=>$* ){$%++?$ %%2?push@C,$_,$":push@c,$_,$":(push@C,$_,$")&&push@c,$"}$C[$# +C]=$/;($#C >$#c)?($ c=\@C)&&($ C=\@c):($ c=\@c)&&($C=\@C);$%=$|;for(@$c){print$_^ +$$C[$%++]}