Rocco said:
The NFA session doesn't have a single _start event, so there's nowhere
for constructor parameters to go.  And while it may have many states,
there's no initial state specified in spawn().

So the key to starting a state is partially documented in the
SYNOPSIS:

 # Spawn an NFA and enter its initial state.
 POE::NFA->spawn(
   inline_states => \%states
 )->goto_state( $start_state, $start_event );

That spawns a new POE::NFA instance, enters its initial state, and
fires off an event that notifies the session that the state has been
entered.

The next clue in this puzzle is goto_state() itself.  Its third and
subsequent parameters are passed as arguments to the $start_event in
the state being entered.

I hope that helps.

Yes, that does help -- thanks, Rocco!

Tim

Reply via email to