Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: General quine

by mtve (Chaplain)
on May 20, 2009 at 13:56 UTC ( #765228=note: print w/ replies, xml ) Need Help??


in reply to General quine

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


Comment on Re: General quine
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (8)
As of 2015-07-06 11:04 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 (72 votes), past polls