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


in reply to Re^4: timer without modules
in thread timer without modules

Assuming there is a module out there that does what you want to do, you can learn a lot by just reading the source code. That should show you how to do it.