http://www.perlmonks.org?node_id=435610


in reply to Re: Perl oddities
in thread Perl oddities

sleep 2.5;
works if you
use Time::HiRes qw/sleep/;

The alternative

select(undef, undef, undef, 2.5);
looks too much like a hack and isn't very clear.

/J

Update: I can't believe I didn't scroll down to see the existing answers to this question :)