Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the MCE CPAN distribution.

Report information
The Basics
Id: 105557
Status: resolved
Priority: 0/
Queue: MCE

People
Owner: Nobody in particular
Requestors: mckeowbc [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: 1.700



Subject: Returning array from MCE:Map inside an eval statement fails
Date: Mon, 29 Jun 2015 17:43:03 +0000
To: bug-MCE [...] rt.cpan.org
From: "Benjamin C. McKeown" <mckeowbc [...] gmail.com>
In MCE 1.608 when using the MCE::Map::mce_map function within an eval statement the code will print a warning about an undefined variable and return a zero element array rather than the correct result. The following code on Pastebin shows the error: http://pastebin.com/fQHiz0SB This will print out the following error message: Use of uninitialized value $_total_chunks in range (or flop) at lib/MCE/Map.pm line 400 This appears to be happening because the finish function is being called which undefines $_total_chunks variable before it is used in the return. Thanks for the help! Cheers, Ben McKeown
Subject: Re: [rt.cpan.org #105557] Returning array from MCE:Map inside an eval statement fails
Date: Mon, 29 Jun 2015 15:53:46 -0400
To: bug-MCE [...] rt.cpan.org
From: Mario Roy <marioeroy [...] gmail.com>
Hi Ben, Thank you for submitting this bug report. The next MCE release will contain the following fix. if ($^S) { ## shutdown if inside an eval statement MCE::_save_state; $_MCE->shutdown(); MCE::_restore_state; } Kind regards, Mario
Subject: Re: [rt.cpan.org #105557] Returning array from MCE:Map inside an eval statement fails
Date: Tue, 30 Jun 2015 13:34:10 +0000
To: bug-MCE [...] rt.cpan.org
From: "Benjamin C. McKeown" <mckeowbc [...] gmail.com>
Thanks Mario. I really love the MCE library. Thanks for all the hard work you've put into it. Cheers, Ben On Mon, Jun 29, 2015 at 3:54 PM Mario Roy via RT <bug-MCE@rt.cpan.org> wrote: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=105557 > > > Hi Ben, > > Thank you for submitting this bug report. The next MCE release will contain > the following fix. > > if ($^S) { > ## shutdown if inside an eval statement > MCE::_save_state; $_MCE->shutdown(); MCE::_restore_state; > } > > Kind regards, > Mario > >
Hello Benjamin, Just chiming in to say that MCE 1.7 will be released soon with the suggested fix. This is not forgotten and will close this ticket once 1.7 is released. Kind regards, Mario
Subject: Re: [rt.cpan.org #105557] Returning array from MCE:Map inside an eval statement fails
Date: Sat, 10 Oct 2015 01:58:49 +0000
To: bug-MCE [...] rt.cpan.org
From: "Benjamin C. McKeown" <mckeowbc [...] gmail.com>
Excellent! Thanks for the update. -Ben On Fri, Oct 9, 2015, 2:59 PM Mario Roy via RT <bug-MCE@rt.cpan.org> wrote: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=105557 > > > Hello Benjamin, > > Just chiming in to say that MCE 1.7 will be released soon with the > suggested fix. This is not forgotten and will close this ticket once 1.7 is > released. > > Kind regards, > Mario >
This has been resolved in the interim MCE 1.7 release. https://metacpan.org/release/MARIOROY/MCE-1.698_001 Thank you, Mario