Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight

Re: Running perl threads in loop

by BrowserUk (Pope)
on Sep 15, 2013 at 14:47 UTC ( #1054186=note: print w/replies, xml ) Need Help??

in reply to Running perl threads in loop

please let me know what am i doing wrong here

One thing you are doing wrong is that @threads will retain the handles from threads created during the first iteration of the loop, for every subsequent iteration.

Try moving its declaration inside the loop.

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.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1054186]
LanX considers looking for a new project ...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (3)
As of 2018-03-19 23:28 GMT
Find Nodes?
    Voting Booth?
    When I think of a mole I think of:

    Results (246 votes). Check out past polls.