in reply to (TIMTOWTDI / Golf / Obfu) Airplanes in class

Wot, no __DATA__ yet?

my $times = shift || 500; my $line = <DATA>; while( $times-- ) { print "$line\n"; } __DATA__ I will not throw paper hairplanes in class.

update: hmm, just looked at the comic. A true C coder would of course write:

for( count = 0; count < 500; count++ )

Seeing something start from 1 in C looks really odd :o)

Replies are listed 'Best First'.
Re: Re: (TIMTOWTDI / Golf / Obfu) Airplanes in class (using __DATA__)
by rje (Deacon) on Nov 14, 2003 at 19:10 UTC
    Whoa, too much code, not enough DATA...
    print <DATA>;
    __DATA__
    I will not throw paper airplanes in class.
    I will not throw paper airplanes in class.
    I will not throw paper airplanes in class.
    I will not throw paper airplanes in class.
    .
    .
    .
    I will not throw paper airplanes in class.
    I will not throw paper airplanes in class.
    I will not throw paper airplanes in class.
    
      print <DATA>x500; __DATA__ I will not throw paper airplanes in class.

      Makeshifts last the longest.

        Excellent! ++Aristotle.