IO-SocketAlarm
view release on metacpan or search on metacpan
### Developing
However if you're trying to build from a fresh Git checkout, you'll need
the Dist::Zilla tool (and many plugins) to create the Makefile.PL
cpanm Dist::Zilla
dzil listdeps | cpanm
dzil build
While Dist::Zilla takes the busywork and mistakes out of module authorship,
it fails to address the need of XS authors to easily compile XS projects
and run single testcases, rather than the whole test suite. For this, you
might find the following script handy:
./dzil-prove t/01-load.t # or any other testcase
which runs "dzil build" to get a clean dist, then enters the build directory
and runs "perl Makefile.PL" to compile the XS, then "prove -lvb t/01-load.t".
### Copyright
SocketAlarm_action.c view on Meta::CPAN
actions[action_pos].act.slp.seconds= SvNV(*el);
}
++action_pos;
continue;
}
if (strcmp(act_name, "close") == 0) {
common_op= ACT_x_CLOSE;
goto parse_close_common;
}
case 6:
// The repeat feature opens the possibility of infinite busy-loops,
// and probably creates more problems than it solves.
//if (strcmp(act_name, "repeat") == 0) {
// int act_count= spec_i;
// if (!act_count)
// croak("'repeat' cannot be the first action");
// if (n_el != 1) { // default is to repeat all, via act_count=i above
// if (n_el != 2)
// croak("Expected 0 or 1 parameters to 'repeat'");
// el= av_fetch(action_spec, 1, 0);
// if (!el || !SvOK(*el) || !looks_like_number(*el) || SvIV(*el) <= 0)
( run in 0.315 second using v1.01-cache-2.11-cpan-87723dcf8b7 )