The stupid question is the question not asked | |
PerlMonks |
Re^4: Using MCE to write to multiple files.by BrowserUk (Patriarch) |
on Nov 22, 2014 at 13:23 UTC ( [id://1108095]=note: print w/replies, xml ) | Need Help?? |
Damn! That's a complicated way of doing something very simple. It took me forever to work out where $chunkIds originated. They start life as an integer list wrapped in a anonymous array:
And get past individually to AddJob() here:
Where they get pushed individually, but wrapped in individual anonymous arrays, onto the queue here:
Then those anonymous array refs get dequeued here:
And the individual integer are then unwrapped from them here:
Before being passed to where they actually get used to number some files here:
All of that to achieve the equivalent of:
Here's a simpler version that avoids the obfuscation:
With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
In Section
Seekers of Perl Wisdom
|
|