Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

General quine

by ambrus (Abbot)
on May 19, 2009 at 19:12 UTC ( #765005=obfuscated: print w/ replies, xml ) Need Help??

print+("print+(","\"",",","\\",")[g1012131121212133121414=~/./g]")[g10 +12131121212133121414=~/./g]

Update 2012-12-12: see also Short quines, How I Learned About Quines.

Comment on General quine
Download Code
Re: General quine
by mtve (Chaplain) on May 20, 2009 at 13:56 UTC

    inspired:

    print$`,$`,q(print$`,$`,q(1)=~1,$',$')=~1,$',$'

    or a bit shorter

    print$`,$_=q(print$`,$_=q( ),$' x/ /),$' x/ /

    update: more regex quine

    print q(print q(1)=~/((\D+)|.)/g)=~/((\D+)|.)/g

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (12)
As of 2014-07-30 11:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (230 votes), past polls