On Fri, Nov 08, 2002 at 04:23:30PM -0500, Dmitri Tikhonov wrote:
>
> 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?
I cannot tell the difference between
Program => [ program, @args ],
and
Program => [program],
ProgramArgs => \@args,
Can you provide a small example of your evil intent so I can see the
benefit?
-- Rocco Caputo - [EMAIL PROTECTED] - http://poe.perl.org/