good to know.
I like the new moduler plugin system. But if you use a poe kernel timer in a plugin it wont have a result. For example.
sub start
{
my ( $kernel, $session, $heap, $args ) = @_[ KERNEL, SESSION, HEAP, ARG0 ];
my %args = %{$args};
my $next_time = int( time() ) + 15;
$kernel->alarm( SomeSub => $next_time => \%args );
}
The plugin wont load in plugin.pm. Get successful execution of plugin a different way?
$poe .= " plugin_start => sub {
my \$result = plugin_event('".$plugin_name."','start',\@_);
if ( defined(\$result) and \$result == 0 )
{
set_state('".$plugin_name."',2);
unload_plugin('".$plugin_name."');
}
}, \n";
[Updated on: Tue, 08 October 2013 11:07]
Report message to a moderator