NAME

Meta::Lang::Perl::Deps - module to help you handle perl dependency information.

COPYRIGHT

Copyright (C) 2001 Mark Veltzer; All rights reserved.

LICENSE

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111, USA.

DETAILS

MANIFEST: Deps.pm PROJECT: meta

SYNOPSIS

package foo; use Meta::Lang::Perl::Deps qw(); my($object)=Meta::Lang::Perl::Deps-new();> my($result)=$object-method();>

DESCRIPTION

This module will help you extract, manipulate and print perl dependency from actual perl source files.

EXPORTS

is_internal($) add_graph($) c2deps($) module_to_search_file($) module_to_file($) file_to_module($) module_to_deps($) extfile_to_module($) deps_to_module($) add_deps($$$$$) add_deps_rec($$$$$$)

FUNCTION DOCUMENTATION

is_internal($)

This method receives a module name from the DEPENDENCY files and tells you if it is internal or not (by checking if it is absolute or not).

add_graph($$)

This method will add the dependency information in a single perl file (script or module) to a graph dependency object you give it.

c2deps($)

This method will extract a dependency graph from a perl source file.

module_to_search_file($)

This will translate a module name to a module file to search for (without the perl/lib prefix...

module_to_file($)

This will translate a module name to a baseline relative file name.

file_to_module($)

Convert a filename for a module to its perl notation (with ::).

module_to_deps($)

This method receives a module name and returns the deps file that holds the dependency information for it.

extfile_to_module($)

Convert an expternal perl module filename perl module notation.

deps_to_module($)

This method does the reverse of module_to_deps.

deps_file_to_module($)

This method recevies a deps file, and returns the module which it represents.

add_deps($$$$$)

This method reads a dep file and adds it's information to a graph.

add_deps_rec($$$$$$)

This module will create a dep graph to describe the module and all the modules that it depends on.

BUGS

None.

AUTHOR

Mark Veltzer <mark2776@yahoo.com>

HISTORY

None.

SEE ALSO

Nothing.

TODO

-in the c2deps method check that the source configuration management tool knows about the files were adding.