in reply to Re: Averages in bowling
in thread Averages in bowling

until (...) { ... } is not Perl. It doesn't work.

Ahem :)

[0] Perl> until( $i == 5 ) { print $i++; };; Use of uninitialized value in numeric eq (==) at 0 1 2 3 4

Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
Lingua non convalesco, consenesco et abolesco. -- Rule 1 has a caveat! -- Who broke the cabal?
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.

Replies are listed 'Best First'.
Re^3: Averages in bowling
by ikegami (Patriarch) on Mar 21, 2006 at 06:20 UTC

    Whoa! That's weird! I did run a test before making that statment. I don't know why, but my test (below) freezes (while yours works). A bug in the optimization code?

    perl -e "until (0) { print "a\n" }

    (I figured I'd just Ctrl-C it)

      Try perl -e "until (0) {print qq(a\n)}" and then smack yourself when you notice the two errors that caused you to have problems. :-P

        doh!! *bonks self with a bible*

        I only see one error. I think you're refering to the missing closing quote which is not an error.

        Is this your new brand of KinkyPerl? :P

        [Graq]