Why not
return EVENT $session, "argh" if $condition;
If the return value will be acted upon, then arrange the appropriate return value from the sub
sub EVENT { $kernel->post( shift, event => @_ ); 0; }; # whatever valu +e is appropriate
In reply to Re: Cutting repetition in POE coding
by BrowserUk
in thread Cutting repetition in POE coding
by BUU
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |