Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

22 lines (15 sloc) 406 Bytes
#!/usr/bin/env perl
# This is pretty close to the final syntax.
# TODO - Coerce a plain coderef without the use of cb_coderef.
use warnings;
use strict;
use lib qw(../lib);
use Reflex::Timer;
use ExampleHelpers qw(eg_say);
use Reflex::Callbacks qw(cb_coderef);
my $t = Reflex::Timer->new(
interval => 1,
auto_repeat => 1,
on_tick => cb_coderef { eg_say("timer ticked") },
Jump to Line
Something went wrong with that request. Please try again.