in reply to Re: do something no more than 3 times a second
in thread do something no more than 3 times a second

you could use select as described in perlfunc

You can effect a sleep of 250 milliseconds this way: select(undef, undef, undef, 0.25);

Replies are listed 'Best First'.
Re^3: do something no more than 3 times a second
by JavaFan (Canon) on Nov 27, 2010 at 00:44 UTC
    Sure, but select() isn't the standard sleep either. And you still need to figure out what the fourth argument should be - select() isn't going to tell you that.