in reply to Re: Re: Way of the Spinner (repost)
in thread Way of the Spinner (repost)
Using Time::HiRes, we'd write it as:while (<>) { select(undef, undef, undef, 0.25); print; }
Funny thing is that I used nearly the same method of making a spinner a while back...and I had the exact same question about slowing it down. Hope this helps!use Time::HiRes qw(sleep); while (<>) { sleep(0.25); print; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Re: Way of the Spinner (repost)
by joeface (Pilgrim) on Jan 18, 2003 at 04:09 UTC |