As a result of a discussion here a few weeks ago (on March 30, in
case you want to retrieve it from the archives), I learned that the
'options' parameter to POE::Session::create is not meant to be used
for "custom" options. For example, the following, even though it may
work, is not proper:
POE::Session->create
(
inline_states => [...],
options => { 'myname' => 'Tim' } <--- my custom option 'myname'
);
Instead, the proper way to pass custom parameters at session creation
time is to use the 'heap' parameter or the 'args' parameter to the
create() command.
OK, so far so good. But what's the proper way to do the same thing
when creating a POE::NFA instead of a POE::Session? The
POE::NFA::spawn command doesn't have a 'heap' (or 'runstate')
parameter or an 'args' parameter. The perldoc says "The spawn()
method currently only accepts inline_states and options." So do I
have to use 'options' after all?
Tim
Dallas, Texas