...Or use Thread::Enqueue, and enqueue a value in one thread, then dequeue it in another.
Actually, that would be Thread::Queue (standard in the Perl distribution) or Thread::Queue::Any from CPAN (if you're interested in passing something more than a simple scalar value).
Also, beware that 5.8.0 has a severe memory leaking bug with shared arrays, which affects the operation of Thread::Queue. Either get 5.8.1 (but since that's not here yet, get one of the recent snapshots) or use a different implementation Thread::Conveyor from CPAN.
Liz
