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.
Comment on
Re: thread wont call subroutine
Download
Code
In Section
Seekers of Perl Wisdom