perl self generating program

  • Thread starter Yahav Bar yosef
  • Start date
Y

Yahav Bar yosef

Anyone has something shorter than this ?

****************************************

#!/usr/bin/perl
open(F,$0);print<F>


****************************************

Yahav bar yosef
 
T

Tad McClellan

Yahav Bar yosef said:
Anyone has something shorter than this ?

****************************************

#!/usr/bin/perl
open(F,$0);print<F>


Sure, an empty file is a shorter "quine" than that one is.

:)
 
U

Uri Guttman

TM> Sure, an empty file is a shorter "quine" than that one is.

and that isn't an 'official' quine as it cheats and accesses its own
source. there is a site (was that posted already in this thread?) with
short quines in many languages.

uri
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,161
Messages
2,570,892
Members
47,432
Latest member
GTRNorbert

Latest Threads

Top