I am thinking of adding extra argument to POE::Wheel::Run's constructor: ProgramArgs => [@args],
Where Program is a scalar, the behavior will be exec($prog . ' ' . join(' ', @$args); Where Program is an array ref, the behavior will be exec(@$prog, @$args); Where Program is a code ref, the behavior will be $program->(@$args); The reason for doing this is that I create POE::Wheel::Run inside POE::Session, and Program is a closure generated based on arguments to POE::Session. I do not want it to be a closure, however. Thus, this evil intent of mine. What do you guys think? And would my patch be accepted? - Dmitri.