Loading inline states from a hash

[email protected] (Josh803316)
Newsgroups perl.poe
Message-ID <[email protected]>
If I want to call a single session with states loaded from a hash.....what
is the best way to do this?

inline_states => [
_start => sub {},
_stop => sub{},
%subs
]

inline_states => [
_start => sub {},
_stop => sub{},
$key => $subs{$key}
]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.