Hi Paul,
Thank you for the report.
MCE::Loop does not work like MCE::Map or MCE::Grep where the latter two
makes unnecessary to call MCE->gather directly.
MCE::Loop falls in between having to create MCE using the core API or using
MCE::Map for example.
One must call MCE->gather inside the block when ever constructing an
assignment variable to the left of mce_loop, mce_flow, or mce_step.
However, it should not fail if MCE->gather isn't called though, meaning
that $b should have a value of 0. Will look into this.
- mario
On Fri, Jan 31, 2014 at 3:22 PM, Philip Mabon via RT <bug-MCE@rt.cpan.org>wrote:
Show quoted text> Fri Jan 31 15:22:14 2014: Request 92627 was acted upon.
> Transaction: Ticket created by TAKADONET
> Queue: MCE
> Subject: non zero error code when using mce_loop
> Broken in: 1.507
> Severity: Important
> Owner: MARIOROY
> Requestors: TAKADONET@cpan.org
> Status: new
> Ticket <URL:
https://rt.cpan.org/Ticket/Display.html?id=92627 >
>
>
> Getting error code 2304 (status code 9) ( 2304 >> 8 == 9) when a script.plhas a mce_loop.
>
> example:
>
> script1.pl
> use MCE::Loop;
>
> my $b = mce_loop { 1 } 1..10;
> print $b;
> ---------
>
> script2.pl
>
> print system("script1.pl");
> --------
>
>
> Script2.pl will return error code 2304 instead of 0.
>
> Cheers!
>