Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

22 lines (15 sloc) 0.406 kb
#!/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") },
);
$t->run_all();
Jump to Line
Something went wrong with that request. Please try again.