Think about Loose Coupling | |
PerlMonks |
Re^3: Proper undefine queue with multithreadsby BrowserUk (Patriarch) |
on Jun 03, 2014 at 20:08 UTC ( [id://1088507]=note: print w/replies, xml ) | Need Help?? |
Would that still be doable with the normal way you just explained? Yes. But you're going to have to explain what output you get from this "omnidb" command; because I've never heard of it. Would you mind showing a small example? Given that your example code is incomplete, which leaves us none the wiser as to and how a whole bunch of global variables used by pullDataFromDbWithDirectory() -- eg. $itemCount, $maxNumberOfItems, $omnidb, $filesystem, $label, @data -- are initialised/used, it would require gobs of time and guesswork to try and construct a working example. Post your full code. Post a sample output from the command. Explain what you are going to do with the list of files you are building in @data. Then maybe we stand a chance of helping you. BTW: Ignore/downvote both existing and any further replies you get from sundialsvc4. He has no working knowledge of using Perl's threading and has a history of posting long, rambling, always useless, often dangerous "suggestions". He even knows this: " Clearly, none of my suggestions would apply to this particular case. ", but he continues to waste everyones time by posting these useless, over generic replies on subjects that he has been proven, time & time again, to have no first hand knowledge. Why? I think the poor ol' thing is getting so senile that he genuinely forgets that he's only regurgitating things he's read rather than his own experiences. Sadly, whilst he seems to be able to retrieve odd snippets of generally good advice; he always seems to forget the correct context, rendering them useless. 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
|
|