Your skill will accomplish what the force of many cannot |
|
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
Your problem is that you are trying to use perl as if it was C. This:
Does not declare a function that takes a single argument called $srv. You need to learn how to use perl before you start playing with threads; otherwise you will just blame threading for your own mistakes. You should start by reading perlsub and writing some simple (non-threaded!) programs that use subroutines and pass arguments. Once you understand how to pass arguments and what "prototypes" are, you may be ready to progress to the next level. 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 reply to Re: Pass a IO::Socket handle to a thread
by BrowserUk
|
|