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

"Devel::MAT::Tool::Reachability" - analyse how SVs are reachable

Author

       Paul Evans <leonerd@leonerd.org.uk>

perl v5.40.0                                       2024-10-20                Devel::MAT::Tool::Reachability(3pm)

Description

       This "Devel::MAT" tool determines which SVs are reachable via any known roots and which are not. For
       reachable SVs, they are classified into several broad categories:

       • SVs that directly make up the symbol table.

       • SVs that form the padlist of functions or store the names of lexical variables.

       • SVs that hold the value of lexical variables.

       • User data stored in package globals, lexical variables, or referenced recursively via structures stored
         in them.

       • Miscellaneous other SVs that are used to implement the internals of the interpreter.

Name

       "Devel::MAT::Tool::Reachability" - analyse how SVs are reachable

Sv Methods

       This tool adds the following SV methods.

   reachable
          $r = $sv->reachable;

       Returns true if the SV is reachable from a known root.

See Also