AHA
view release on metacpan - search on metacpan
view release on metacpan or search on metacpan
example/lava_lamp.pl view on Meta::CPAN
sub log_manual_switch {
my $status = shift;
my $is_on = shift;
my $last = get_last_entry($status);
if ($last && $is_on != $last->[1]) {
# Change has been manualy in between the interval. Add an approx history entry
update_status($status,$is_on,"manual",estimate_manual_time($status));
}
}
sub update_status {
my $status = shift;
my $is_on = shift;
my $mode = shift;
my $time = shift || time;
my $label = shift;
my $hist = $status->{hist};
push @{$hist},[ $time, $is_on, $mode, $label];
info($is_on ? "On " : "Off"," -- ",$mode, $label ? ": " . $label : "");
}
view all matches for this distributionview release on metacpan - search on metacpan
( run in 0.661 second using v1.00-cache-2.02-grep-82fe00e-cpan-4673cadbf75 )