in reply to New golf game (for the extremely bored)

Of course you meant to write:
perl -e "for(1..200) {print ['H', 'T']->[rand(2)];}"
didn't you ;)

Replies are listed 'Best First'.
Re: Re: New golf game (for the extremely bored)
by Necos (Friar) on Feb 08, 2002 at 17:20 UTC
    Nope. Since the for() loop is only one line, it'll work without the semicolon. As a matter of fact, I could have easily have done...
    perl -e "print ['H','T']->[rand(2)] for(1..200)"
    Theodore Charles III
    Network Administrator
    Los Angeles Senior High
    4650 W. Olympic Blvd.
    Los Angeles, CA 90019
    323-937-3210 ext. 224
    email->secon_kun@hotmail.com
      Ha ha, Necos++ you're right of course, I mistyped it when I tried to run it. Coupled with the fact that I've just spent the last 3 hours debugging a co-workers program that had missing semi-colons (I've got missing semi-colons on the brain!!)