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.
Try calling $recv->join; below your thread declaration.
|
---|
In Section
Seekers of Perl Wisdom