Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Strung Out

by MeowChow (Vicar)
on May 16, 2001 at 10:48 UTC ( [id://80818]=obfuscated: print w/replies, xml ) Need Help??

print qq'\u\L$ {\(J.$ {\(U.$ {\(S.$ {\(T)})})})}$ "\E\L${\(A.${\(N.$ {\(O.$ {\(T.$ {\(H.$ {\(E.$ {\(R)})})})})})})}$ "\E\u\L${\(P.$ {\(E.$ {\(R.$ {\(L)})})})}$ "\E\L${\(H.${\(A.$ {\(C.$ {\(K.$ {\(E.$ {\(R)})})})})})}$/'
   MeowChow                                   
               s aamecha.s a..a\u$&owag.print

Replies are listed 'Best First'.
Re: Strung Out
by tachyon (Chancellor) on May 16, 2001 at 15:59 UTC
    Elegant simplicity, very pleasing on the eyes.
    # Essence of this script is the dereferenced reference construct # 'Just Another perl Hacker' == ${\('Just Another Perl Hacker')} print "Just Another Perl Hacker\n" if 'Hacker' == ${\(Hacker)}; # Each line is best read from right to left. The embedding of the # derefed literals make a clever obfuscation but repeats almost # identically for each block. Got one got em all. # \u -> title case next char only # \L -> lowercase until \E # \E -> end case # $" -> $LIST_SEPERATOR default value ' ', used for ' ' # Splitting the $" onto two lines is a rather clever trick which # removes the newline which is present in the code presented below: print qq'${\(foo)}$ # split line $" syntax avoids newline here "${\(bar)} ${\(foo)}$" ${\(bar)}\n'; print qq' \u\L$ {\(J.${\(U.${\(S.${\(T)})})})} $"\E\L${\(A.${\(N.${\(O.${\(T.${\(H.${\(E.${\(R)})})})})})})} $"\E\u\L${\(P.${\(E.${\(R.${\(L)})})})} $"\E\L${\(H.${\(A.${\(C.${\(K.${\(E.${\(R)})})})})})}$/ '
    tachyon
Re: Strung Out
by Anonymous Monk on May 16, 2001 at 15:29 UTC
    Wow, I didn't know that you could write LISP in Perl!

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (5)
As of 2024-10-10 13:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    The PerlMonks site front end has:





    Results (45 votes). Check out past polls.

    Notices?
    erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.