Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re^2: MCE seemingly stray array in sample code for Strassen's algorithm

by cormanaz (Chaplain)
on Apr 14, 2013 at 12:09 UTC ( #1028620=note: print w/ replies, xml ) Need Help??


in reply to Re: MCE seemingly stray array in sample code for Strassen's algorithm
in thread MCE seemingly stray array in sample code for Strassen's algorithm

Well blow me down. I have thought all these years that a variable declared "my" in the main block was only accessible in the main block and not in its subs, and that to make it accessible you had to declare it "our." I guess not!


Comment on Re^2: MCE seemingly stray array in sample code for Strassen's algorithm
Re^3: MCE seemingly stray array in sample code for Strassen's algorithm
by marioroy (Beadle) on Dec 13, 2014 at 02:51 UTC
    Hi all,

    The @p array in question, by the OP, is updated by the MCE manager process only and not by the workers themselves. The $self->do(...) method sends data to the manager process.

    http://api.metacpan.org/source/MARIOROY/MCE-1.521/images/08_Natural_Callback.gif

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1028620]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (6)
As of 2015-05-26 04:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    In my home, the TV remote control is ...









    Results (494 votes), past polls