in reply to Re^2: How to timeout a while loop?
in thread How to timeout a while loop?

Umm.. if you leave the if at the bottom outside the while the next is useless, and any $@ values will cause the loop to continue, including non-timeout values. You could possibly also miss valid die messages. To be really useful you should probably check the $@ at the end of the eval after the alarm(0);

                - Ant
                - Some of my best work - (1 2 3)