in reply to is $_ thread-safe?
Apache (and thus mod_perl) is not multi-threaded, so this isn't an issue there. I couldn't say whether or not it's safe to use this with actual Perl threads, but since they are generally regarded as not ready for primetime this would most likely be the least of your worries.