Hmm. seems like cheating... is it legal or not?

open(O,$0);while(<O>){print}

Don't kick me from the Monastery for this, i'm running a fever right now :)

cab

Replies are listed 'Best First'.
(jeffa) Re: Quine??
by jeffa (Bishop) on Mar 08, 2002 at 14:34 UTC
      And since we are at it, why not golfing it as well? :)
      # 1 2 #2345678901234567890 @ARGV=$0;print for<>
      _ _ _ _ (_|| | |(_|>< _|
        # 1 2 #2345678901234567890 @ARGV=$0;print<>

        Or... for unix:
        # 1 2 #2345678901234567890 system cat,$0

        GreetZ!,
          ChOas

        print "profeth still\n" if /bird|devil/;
Re: Quine??
by ChOas (Curate) on Mar 08, 2002 at 12:52 UTC
    These links might be fun for Perl Quine fans:

    Link1
    Link2

    GreetZ!,
      ChOas

    print "profeth still\n" if /bird|devil/;
Re: Quine??
by Juerd (Abbot) on Mar 08, 2002 at 12:30 UTC
    perl -e'open(O,$0);while(<O>){print}'

    Sorry, it doesn't work ;)
    Yes, using $0 in a quine is cheating. I wish you good luck creating a real one!

    44696420796F7520732F2F2F65206F
    7220756E7061636B3F202F6D736720
    6D6521203A29202D2D204A75657264
    

      Yes, well if you save it as a .pl file and run it, then the output is different. I did mention, i'm running a fever did i?
      Remember everything i'm telling you now and tell me Remember everythin +g i'm telling you now and what i just told you :)


      cab
        If i could -- myself, i propably would right now. Just ignore my posts today.

        cab