In the article refered by Linux Journal article - possible advocacy potential the master of obfuscation warns us:

In addition, we are considering changing our data file format from an arcane system developed in-house to one using XML.

I'm scared! Erudil tackles XML! I am _so_ afraid of the result! Such a sick and twisted mind applied to such a sick and twisted format!

So I am certainly not an obfuscation expert, but I decided to strike pre-emptively and to write a sick and twisted XML obfuscation, using XML::Parser to sorta parse itself and to sorta print a JAPH.

#!/bin/perl -w use strict; seek DATA, $[,$[; sub another{ foreach( $[..(($^W<<1)+$^W)) { <DATA>}} my $just= another or my $xml=hacker() and <DATA>; sub hacker { $_= <DATA> } sub smoke { pipe 0, 1} sub mirror { return join( " \n", split( /[^a-x]+/, $xml))} sub ON { "perl -e'print q{". (smoke and mirror) . "}' |" } open( ELT, ON); <ELT>;use XML::Parser; $xml=~ s<!-- smoke --><!--mirror-->; my $parser= XML::Parser->new( Handlers => { Start => sub { while( <ELT>) { chomp; print ucfirst; last; } }, End => sub { print "\n" if( $_[0]->depth == 0); }, Comment => sub { <ELT>=~ m</ELT>;} }); $parser->parse( \*DATA); $just=q</ELT>. qq</ELT>; __DATA__ </DATA>

In reply to XML _is_ sick and twisted by mirod

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.