Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

This node falls below the community's minimum standard of quality and will not be displayed.

Replies are listed 'Best First'.
Re: infinite loop
by samurai (Monk) on Sep 27, 2002 at 12:40 UTC
    Just for future reference, this is a very good example of a bad node (thus its low score). There's no way we can tell what happens in "do test", because you didn't post the code. Then, you seem to have solved the problem yourself without any help at all, insinuating that if you'd just looked a little closer you wouldn't have had to ask this question.

    In the future, please try to post ALL of the code in the script(s), and maybe do a little more homework before posting. Also, remember to use <code></code> tags around your code.

    --
    perl: code of the samurai

Re: infinite loop
by zigdon (Deacon) on Sep 27, 2002 at 10:15 UTC
    well, without knowing what "do test" does, it's hard to answer. First shot in the dark says "do test" does something that never returns.

    Unless you mean it's literally what you wrote there, which is a syntax error.

    -- Dan

      Sorry, I'd forgotten to use $|++ prior to starting the loop. Cheers
Re: infinite loop
by sauoq (Abbot) on Sep 27, 2002 at 16:32 UTC

    Try this instead:

    while (1) { print "do test\n"; sleep(10); }
    -sauoq
    "My two cents aren't worth a dime.";