X-Git-Url: http://git.vpit.fr/?p=perl%2Fmodules%2Findirect.git;a=blobdiff_plain;f=README;h=d1b1229c0221abc04437cd1c09e0c1686ce43317;hp=88f2bebc41249c95d5ea200d6b4feb6335888ac2;hb=f02dad546d5c13916b4771154d8f7284fc3cb31c;hpb=b47c75970ab200626c92f26eab0f3a4a1123bb6f diff --git a/README b/README index 88f2beb..d1b1229 100644 --- a/README +++ b/README @@ -2,7 +2,7 @@ NAME indirect - Lexically warn about using the indirect object syntax. VERSION - Version 0.17 + Version 0.18 SYNOPSIS # In a script @@ -80,6 +80,18 @@ DIAGNOSTICS The default warning/exception message thrown when an indirect call on a block is found. +ENVIRONMENT + "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 'indirect' + lexical hint will be set to true in the scope of use, the pragma itself + won't do anything. This is useful for disabling "indirect" in production + environments. + + Note that clearing this variable after "indirect" was loaded has no + effect. If you want to reenable the pragma later, you also need to + reload it by deleting the 'indirect.pm' entry from %INC. + CAVEATS The implementation was tweaked to work around several limitations of vanilla "perl" pragmas : it's thread safe, and doesn't suffer from a