|P is for Practical|
Re^2: /^[^A-Za-z0-9 ]*$/by Roger_B (Scribe)
|on Sep 30, 2005 at 20:47 UTC||Need Help??|
Yes, that amused me when I tried it. My clue about deparse was in case anyone's perl wasn't called 'perl' or wasn't on the path; the deparsed version shows that part of how it works.
Here's a partially de-obfuscated version:
basically it's a concatenation of strings, using the bitwise xor operator '^' to generate alphanumeric characters, per chester's line noise JAPH. For example the 'p' in the first 'perl' comes by xoring '_' and '/':
Deparsing de-obfuscates it because the entire xoring and concatenation is made up of literals, so the compiler calculates the result and substitutes it into the compiled version. Deparse simply translates the compiled code back into Perl code. A simpler example might be:
'2 * 2' is translated to '4' at compile time and deparse leaves it that way.