NAME

LEOCHARRE::PMUsed - check what modules are used in a directory

DESCRIPTION

Will recurse all pl, t, pm and any files in bin for use $modulename. Basically check all perl and find what modules are being used.

Also check if they are installed; optionally.

module_is_installed()

argument is a module name, like PDF::API2. returns boolean, warns if not installed.

find_code_files()

argument is abs path to dir to start from, your dev base etc. Find all .t .pm .pl files, also if there is a bin dir, will seek perl scripts returns array ref with abs paths to files.

modules_used()

argument is abs path to a perl code file, returns hash ref, each key is a module name, the value is the count of times seen.

returns undef and warns if file not there

this list includes modules used and modules required. if a require such as library.pl is present, this is discarded. all requires of names with a dot are discarded.

modules_used_scan_tree()

argument is abs dir, such as /home/me/dev/MySuperThing. scans entire filetree

returns hash ref, each key is a module name, the value is the count of times seen.

AUTHOR

Leo Charre leocharre at cpan dot org

SEE ALSO

LEOCHARRE::Dev