in reply to I'm amusing myself trying to obfuscate a little script ...

Along those lines, everything I learned about obfuscating perl code, I learned from here.

And I took notes.

And to make sure I could find them again, I added them to my home node. Much like some of the other regular obfuscators have.

Take a gander through the pages of [id://Obfuscated Code] and check out the home nodes of some of the authors. You're likely to find a wealth of information and ideas about obfuscating code.

Also, DE-obfuscating some of the higher-ranked obfuscations REALLY helps in understanding how to create jems of your own. Try a little perl -MO=Deparse, adding your own whitespace, etc... and you'll start to gain your own insight.



--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[$%++]}