thraxil.org:

spiraling quine

by anders pearson Fri 21 Jun 2002 10:39:44

Link: http://www.perlmonks.org/index.pl?node_id=176043

damn, that’s slick.

TAGS: programming perl quine

comments

Hey, there are children here!

Will you please explain it?

ok.

i've mentioned quines before. a quine is simply a program that produces its own source code as its output.

this program is a quine but with a twist. if you run it on the command line, it prints its own source code but in an animated fashion. the whitespace is changed so it looks like the spiral pattern is spinning around.

if you have access to a unix box with perl on it, take a minute or two to copy/paste the code into a file (like 'spiral.pl') and run it 'perl spiral.pl'.

Ah, before my time. Cool though. I'm getting unixy access soon, as soon as I mail in my photoID. Hmmm... may be I could do it on my macOSX? I'll try!


formatting is with Markdown syntax. Comments are not displayed until they are approved by a moderator. Moderators will not approve unless the comment contributes value to the discussion.

namerequired
emailrequired
url
remember info?