Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot

Fun With Reserved Keywords

by blokhead (Monsignor)
on Sep 11, 2003 at 07:29 UTC ( #290607=obfuscated: print w/replies, xml ) Need Help??

Here's a list of words. But not just any words, they are all keywords in Perl. Strangely, this plain ol' list of keywords is a working Perl program.
#!/usr/bin/perl not exp log srand xor s qq qx xor s x x length uc ord and print chr ord for qw q join use sub tied qx xor eval xor print qq q q xor int eval lc q m cos and print chr ord for qw y abs ne open tied hex exp ref y m xor scalar srand print qq q q xor int eval lc qq y sqrt cos and print chr ord for qw x printf each return local x y or print qq s s and eval q s undef or oct xor time xor ref print chr int ord lc foreach qw y hex alarm chdir kill exec return y s gt sin sort split
Run it and see! Who says the excessive punctuation required in Perl makes its programs look ugly? ;)

Update: (3 Sept 2005) Takesako has written a program which generates JAPHs of this form: ppencode


Replies are listed 'Best First'.
Re: Fun With Reserved Keywords
by Chady (Priest) on Sep 11, 2003 at 09:17 UTC

    This is a really cool obfu. and it's the first time I attempt to crack an obfuscation. Please correct me where I'm wrong

    (spoilers in readmore)

    I hope I got it right?

    He who asks will be a fool for five minutes, but he who doesn't ask will remain a fool for life.

    Chady |
Re: Fun With Reserved Keywords
by menolly (Hermit) on Sep 16, 2003 at 17:16 UTC
    That would be a great shirt design!
Re: Fun With Reserved Keywords
by Felonious (Chaplain) on Sep 12, 2003 at 13:31 UTC
    This is one of the most original ideas I've seen in a while. Very impressive!
    -- So prophesied the shakespearean monkeys, and so it shall be.
Re: Fun With Reserved Keywords
by jbware (Chaplain) on Feb 13, 2004 at 21:00 UTC
    Sweet. blokhead++

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: obfuscated [id://290607]
Approved by Limbic~Region
Front-paged by Limbic~Region
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (2)
As of 2017-08-20 06:52 GMT
Find Nodes?
    Voting Booth?
    Who is your favorite scientist and why?

    Results (313 votes). Check out past polls.