in reply to Simple Text Animation

Read sleep and notice the last paragraph:

For delays of finer granularity than one second, you may use Perl's syscall() interface to access setitimer(2) if your system supports it, or else see select() above. See also the POSIX module's sigpause()function.