Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: (TIMTOWTDI / Golf / Obfu) Airplanes in class (using __DATA__)

by grinder (Bishop)
on Oct 03, 2003 at 22:17 UTC ( [id://296413]=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (8)
As of 2024-04-19 17:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found