Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
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 exploiting the Monastery: (5)
As of 2015-07-04 09:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (59 votes), past polls