BEGIN {
if ($ENV{PERL_INDIRECT_PM_DISABLE}) {
*_tag = sub ($) { 1 };
+ *I_THREADSAFE = sub () { 1 };
} else {
require XSLoader;
XSLoader::load(__PACKAGE__, $VERSION);
=head2 C<PERL_INDIRECT_PM_DISABLE>
If this environment variable is set to true when the pragma is used for the first time, the XS code won't be loaded and, although the C<'indirect'> lexical hint will be set to true in the scope of use, the pragma itself won't do anything.
+In this case, the pragma will always be considered to be thread-safe, and as such L</I_THREADSAFE> will be true.
This is useful for disabling C<indirect> in production environments.
Note that clearing this variable after C<indirect> was loaded has no effect.