Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
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
Replies are listed 'Best First'.
Re: General quine
by mtve (Deacon) 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 meditating upon the Monastery: (5)
As of 2016-05-24 09:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?