Subject: | Calling MCE::Stream inside an eval statement fails |
Date: | Mon, 29 Jun 2015 18:11:58 +0000 |
To: | "bug-MCE [...] rt.cpan.org" <bug-MCE [...] rt.cpan.org> |
From: | "Benjamin C. McKeown" <mckeowbc [...] gmail.com> |
This bug is similar to #105557
<https://rt.cpan.org/Public/Bug/Display.html?id=105557> except in the
MCE::Stream module instead of MCE::Map. This bug is in version 1.608 of
MCE.
When calling mce_stream with in eval statement a warning about an
uninitialized variable is printed and a zero element array is returned.
The following code on Pastebin demonstrates the error:
http://pastebin.com/5zreduhc
When run this code prints the following message:
Use of uninitialized value $_order_id in subtraction (-) at
lib/MCE/Stream.pm line 514
Cheers,
Ben McKeown