Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.2 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Programming > Perl Modules

    File::PackageIndexer 0.02

    Download button

    No screenshots available
    Downloads: 246  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Steffen Muller | More programs
    Perl Artistic License / FREE
    September 10th, 2009, 17:19 GMT
    ROOT / Programming / Perl Modules

     Read user reviews (0)  Refer to a friend  Subscribe

    File::PackageIndexer description

    Indexing of packages and subs

    File::PackageIndexer is a Perl module that parses a piece of Perl code using PPI and tries to find all subs and their packages as well as the inheritance of the packages.

    Currently, the following constructs are recognized:

    package statements
    plain subroutine declarations
    Class::Accessor-like accessor generation
    Class::XSAccessor and Class::XSAccessor::Array
    use base ... inheritance declaration
    use parent ... inheritance declaration
    our @ISA = ... and @ISA = ... inheritance declaration
    push @ISA, ... and unshift @ISA, ... inheritance modification

    The inheritance detection (hopefully) correctly recognizes the effect of special blocks such as BEGIN {...}. END blocks are ignored.

    SYNOPSIS

     use File::PackageIndexer;
     my $indexer = File::PackageIndexer->new();
     $indexer->clean(1);
     my $pkgs = $indexer->parse( $ppi_document_or_code_string );
     
     use Data::Dumper;
     print Dumper $pkgs;
     # prints something like:
     # {
     # Some::Package => {
     # name => 'Some::Package',
     # subs => {
     # new => 1,
     # foo => 1,
     # },
     # isa => [ 'SuperClass1', 'SuperClass2' ],
     # },
     # ... other pkgs ...
     # }



    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    package indexer | Perl module | Perl | package | indexer

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM