Re: Need some help...
Phil Whelan <[email protected]>
| Newsgroups | gmane.comp.lang.perl.poe |
|---|---|
| Message-ID | <[email protected]> |
Hi Rob,
I think you have the POE::Sesssion->create syntax slightly wrong.
This is from the docs....
POE::Session->create(
object_states => [
$object_1 => { event_1a => "method_1a" },
$object_2 => { event_2a => "method_2a" },
],
inline_states => {
event_3 => \&piece_of_code,
},
);
You have....
> POE::Session->create(
> object_states => [
> $self => [ qw( _start ) ],
> ],
Which should be
POE::Session->create(
object_states => [
$self => [ qw( _start _start ) ],
],
Though maybe this reads better...
POE::Session->create(
object_states => [
$self => [
_start => "_start",
],
],
Hope that helps.
Cheers,
Phil
--
Mobile: +1 778-233-4935
Website: http://philw.co.uk
Skype: philwhelan76
Twitter: philwhln
Email : [email protected]
iChat: [email protected]