Flower
view release on metacpan or search on metacpan
lib/Flower/Nodes.pm view on Meta::CPAN
my $self = shift;
foreach my $node ( @{ $self->{nodes} } ) {
# if node has timed out, remove it
if ( $node->has_timed_out ) {
print "$node - removing after timeout\n";
$self->remove($node);
}
# ping it if we need to, to keep it alive
else {
# tell the node what the 'us' node is, so it can pass that
# information on
$node->ping_if_necessary( $self->nodes_as_hashref );
}
}
say "current nodes:";
foreach my $node ( @{ $self->{nodes} } ) {
( run in 2.227 seconds using v1.01-cache-2.11-cpan-39bf76dae61 )