SDL::Timer - a SDL perl extension to handle timers
$timer = new SDL::Timer { print "tick"; 4000; } -delay => 4000;
SDL::Timer provides an abstract interface to the SDL::Timer callback code. SDL::Timer::new requires a subroutine and a delay at which is the initial interval between the creation of the timer until the first call to the subroutine. The subroutine must return a value which is the delay until the it is called again.
SDL::Timer
David J. Goehrig
perl(1) SDL(3)
To install SDL_perl, copy and paste the appropriate command in to your terminal.
cpanm
cpanm SDL_perl
CPAN shell
perl -MCPAN -e shell install SDL_perl
For more information on module installation, please visit the detailed CPAN module installation guide.