Have you read the threads documentation? Because there it says:
my $thread_count = threads->list(); [download]
In reply to Re: Thread Tracking. by Corion in thread Thread Tracking. by karthick