Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: thread wont call subroutine

by carlin (Beadle)
on Jun 02, 2009 at 22:20 UTC ( #767804=note: print w/replies, xml ) Need Help??


in reply to thread wont call subroutine

I'll take a stab in the dark here; are you sure the thread isn't running the subroutine but the program is exiting before it completes?

Try calling $recv->join; below your thread declaration.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (1)
As of 2023-03-29 18:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which type of climate do you prefer to live in?






    Results (72 votes). Check out past polls.

    Notices?