Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: require sugesstions for writing a perl script

by roboticus (Canon)
on Mar 06, 2013 at 11:12 UTC ( #1021994=note: print w/ replies, xml ) Need Help??


in reply to require sugesstions for writing a perl script

lazydev:

I've not tried it, but you could probably use Parallel::ForkManager to control the number of jobs running at once. As the anonymous monk mentioned earlier, you don't want to run all 1000 at once. Instead keep a pool of XX running until you finish them all. Play around with the value of XX until you find the best time/resource tradeoff.

...roboticus

When your only tool is a hammer, all problems look like your thumb.


Comment on Re: require sugesstions for writing a perl script
Re^2: require sugesstions for writing a perl script
by topher (Scribe) on Mar 06, 2013 at 15:36 UTC

    Good suggestion. I've used Parallel::ForkManager, and it should indeed work very well for this case.

    Christopher Cashell

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (5)
As of 2014-07-26 14:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (177 votes), past polls