This code is my first obfuscation, and my birthday present to me :-). It's based on a feature discovered by Ovid and mainly uses that one - in obvious and surprising ways I think.

It dosen't pass -w but it uses strict; (weird, eh ?), and it works at least with ActiveState Perl 5.005_03 (but reportedly not with 5.6)


Update: A spoiler/explanation is now available on my home node

More Update: I've got some reports that this obfuscation also works under ActiveState Perl 5.6, which I didn't test. Thanks to isotope and Tye.

#!/usr/bin/perl ;s ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; use strict ;s ;s You can never use it too much ;s ;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;$~;$~=($~=~$~,",~$~=~$)=~$;~$=;;; ;;;; ;;;; Dear Friend, ~=$~=-$$-=~$~"=~ Use =~$"=~$",0=~$"=~ strict. $~ =~"$~"=~$~ =~ Be ,"=~$~=~s","=~ Another ~==============~ Hacker "),".$~$$~$.",$~ and $~=~0,$~=~s~=\~~ Just ~, $~ =~ Love %$$;$~=~s~.=+\~~ Perl ~,$~=~print$~,=~ Forever ;$~;0000000000;$~;