Thank you Hinrik! Great that you as the maintainer find the time to help me out!

I am having troubles though. I really tried to get some code out of your words but I failed. The documentation on POE was no help for me (do you have any other suggestions on where to read/learn about poe than on the POE website?). I added to the init method:

sub init { my $self = shift; $self->config( { user_sc => 2, } ); POE::Session->create( inline_states => { _start => sub { my ($kernel, $heap) = @_[KERNEL, HEAP]; my $session_id = $_[SESSION] -> ID; $self->config( { user_session_id => $session_id, } ); }, test => sub { }, } ); }

This, however, returns the following error:

Error loading Can't load MyModule: Bareword "KERNEL" not allowed while + "strict subs" in use at ./MyModule.pm line 34.

So apart from this error (how do I get rid of it?):
Did I get the session id the right way? Did I use the right way to store it in $self?


In reply to Re^2: schedule alarms with POE and Bot::BasicBot::Pluggable ? by brengo
in thread schedule alarms with POE and Bot::BasicBot::Pluggable ? by brengo

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.