cpan-authors / IPC-Run

https://metacpan.org/pod/IPC::Run
Other
21 stars 38 forks source link

`init` must be passed before timers #134

Open dakkar opened 5 years ago

dakkar commented 5 years ago

This works:

run \@cmd, \$in,\$out,\$err,init=>\&sub,timeout(10);

This doesn't:

run \@cmd, \$in,\$out,\$err,timeout(10),init=>\⊂

It dies with No command before 'init'. I'm not sure why a timer resets $cur_kid, but it would be nice if the documentation noted this ordering issue.

(thank you for all the work on this module!)