develooper Front page | perl.perl6.language | Postings from January 2001

Why shouldn't sleep(0.5) DWIM?

Thread Next
Michael G Schwern
January 30, 2001 01:13
Why shouldn't sleep(0.5) DWIM?
Message ID:
Is there any really good reason why sleep() doesn't work for
microseconds?  I mean, if I can do this:

    sub sleep {
        my($time) = shift;
        if( /^[+-]?\d+$/ ) {
        else {
            select(undef, undef, undef, $time);

Why can't Perl?  Smells like a C holdover to me.


Michael G. Schwern   <>
If you have to shoot, shoot!  Don't talk.
		-- Tuco, "The Good, The Bad And The Ugly"

Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About