Package and sub indexing software available for efficient organization and storage.
Importantly, the inheritance detection feature is able to correctly recognize the effect of special blocks like BEGIN {...}, while ignoring END blocks. To use this module, simply start by including it via the use statement and invoking it with ease. For instance, use File::PackageIndexer and create a new instance with the new method.
Then set the cleaning of output with the clean method and parse the desired code using the parse method, either via a PPI document or code string. The output format returns a hash reference with a name, subs, and isa key that contains the package name, subroutine details, and inheritance information.
To display the output, you can utilize the Data::Dumper module, which should print the package details that include subs such as 'new', 'foo', and list the SuperClass1 and SuperClass2 inheritance. This module is a must-have for Perl developers who need to manage inherited code bases and want to have an accurate reflection of their code's implementation details.
Version 0.02: N/A