Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Thread Exit Status

by BrowserUk (Patriarch)
on Dec 14, 2011 at 10:25 UTC ( [id://943520]=note: print w/replies, xml ) Need Help??


in reply to Thread Exit Status

A few questions:

  1. If you have no use for $num (aka. $callnum inside RunChild ) why are you returning that?
  2. If you aren't going to do anything with the output from curl, why are you using backticks?
  3. Why are you naming the curl output file with a number, but all your threads are fetching the same, hard-coded url/file?

    If you want multiple copies of the same remote file with numeric names, why not fetch it once and then copy it locally?

I think I know how to implement what you might actually want, but I'd only be guessing what that is because you sample code makes no sense. Once you've clarified what your real code does, or should do, then it will probably be quite easy to suggest a solution.


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.

The start of some sanity?

Replies are listed 'Best First'.
A reply falls below the community's threshold of quality. You may see it by logging in.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (5)
As of 2024-03-28 16:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found