Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Double quoting Larry

by stefp (Vicar)
on Jan 22, 2002 at 05:10 UTC ( [id://140558]=obfuscated: print w/replies, xml ) Need Help??

At the Mongueurs Perl de Paris we have a long running tradition to obfuscate the incrementation of $A. The explanation of this tradition is written (in non obfuscated French) in this page with the current specimens.

The following obfu has been inspired by the peculiarities of parsing variables in double quoted strings. This was reminded to me by the following passage of the Apocalypse 4: "Therefore, we will make the rule that a left curly that has whitespace in front of it will never be interpreted as a subscript in Perl 6. (If you think this is totally bizarre thing to do, consider that this new approach is actually consistent with how Perl 5 already parses variables within interpolated strings.)"

No double increment!
$ a { 1 } = 1; $A +=eval "$ a { 1 }"; $a=1; $A += eval "$ a { 1 }"

-- stefp -- check out TeXmacs wiki

Replies are listed 'Best First'.
Re: Double quoting Larry
by tadman (Prior) on Jan 23, 2002 at 01:15 UTC
    $A=(1..$A*2)[$A];

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: obfuscated [id://140558]
Approved by root
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (4)
As of 2024-04-23 23:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found