See the current Perl documentation for Thread::Specific.
Here is our local, out-dated (pre-5.6) version:

Thread::Specific - thread-specific keys

use Thread::Specific;
my $k = key_create Thread::Specific;

key_create returns a unique thread-specific key.