logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

tainting - (DEPRECATED) Enable taint mode lexically

Author

       perlancar <perlancar@cpan.org>

Bugs

       Please report any bugs or feature requests on the bugtracker website
       <https://rt.cpan.org/Public/Dist/Display.html?Name=tainting>

       When submitting a bug or request, please include a test-file or a patch to an existing test-file that
       illustrates the bug or desired feature.

Contributor

       Steven Haryanto <sharyanto@cpan.org>

Description

DEPRECATIONNOTICE: tainting.pm is broken and will be purged from CPAN because the lexical switching is
       done at compile time while tainting is performed at runtime. Please see Taint::Runtime and localize
       $TAINT instead.

       This module provides a simpler interface to Taint::Runtime. The idea is so that there is no functions or
       variables to import. Just "use" or "no", like warnings or strict. Tainting of %ENV will be done one time
       automatically the first time this module is used.

       Please (PLEASE) read Taint::Runtime's documentation first about the pro's and con's of enabling/disabling
       tainting at runtime. TL;DR: Use -T if you can.

Homepage

       Please visit the project's homepage at <https://metacpan.org/release/tainting>.

Name

       tainting - (DEPRECATED) Enable taint mode lexically

See Also

       Taint::Runtime

Source

       Source repository is at <https://github.com/perlancar/perl-tainting>.

Synopsis

       To enable tainting in a lexical block:

        {
            use tainting;
            # tainting is enabled
        }
        # tainting is disabled again

       To disable tainting in a lexical block:

        use tainting;
        {
            no tainting;
            # tainting is disabled
        }
        # tainting is enabled again

Version

       This document describes version 0.031 of tainting (from Perl distribution tainting), released on
       2021-08-06.

See Also