Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much

Fun With Reserved Keywords

by blokhead (Monsignor)
on Sep 11, 2003 at 03: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 05: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 13:16 UTC
    That would be a great shirt design!
Re: Fun With Reserved Keywords
by Felonious (Chaplain) on Sep 12, 2003 at 09: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 16:00 UTC
    Sweet. blokhead++

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: obfuscated [id://290607]
Approved by Limbic~Region
Front-paged by Limbic~Region
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (2)
As of 2023-12-07 07:23 GMT
Find Nodes?
    Voting Booth?
    What's your preferred 'use VERSION' for new CPAN modules in 2023?

    Results (32 votes). Check out past polls.