in reply to Re^5: perl -Dusethreads compilation
in thread perl -Dusethreads compilation

I do have separate instance/connection. But my question is should I still be concerned about any clashing happening? Oh and this is the same server downloading.

Replies are listed 'Best First'.
Re^7: perl -Dusethreads compilation
by BrowserUk (Patriarch) on Apr 05, 2010 at 18:39 UTC

    Try it. See what happens.

      Thanks for the code.

      I have made a package wrapper for Net::FTP the purpose is for error code checking.

      The package declares "our ftpObj", can you tell me what happens if all threads use the ftpObj, even though they make their own connections will I get conflicts because of the variable is declared as 'our'.

        Unless you explicitly share a varible, each thread will have it's own copy.

        But, if you assign an object to a variable, before you spawn a thread, the new thread will usually not be able to use its copy successfully. It is quite hard to advise you without seeing your code.


        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.