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.


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