NAME

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

COPYRIGHT

Copyright (C) 2001, 2002 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
VERSION: 0.13

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.

FUNCTIONS

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($$$$$$)
TEST($)

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...

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.

TEST($)

Test suite for this module.

SUPER CLASSES

None.

BUGS

None.

AUTHOR

Name: Mark Veltzer
Email: mailto:veltzer@cpan.org
WWW: http://www.veltzer.org
CPAN id: VELTZER

HISTORY

0.00 MV fix up cook files
0.01 MV perl packaging
0.02 MV more perl packaging
0.03 MV perl packaging again
0.04 MV fix database problems
0.05 MV md5 project
0.06 MV database
0.07 MV perl module versions in files
0.08 MV movies and small fixes
0.09 MV thumbnail user interface
0.10 MV more thumbnail issues
0.11 MV website construction
0.12 MV web site automation
0.13 MV SEE ALSO section fix

SEE ALSO

Meta::Baseline::Aegis(3), Meta::Development::Deps(3), Meta::Utils::Utils(3), strict(3)

TODO

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

-were always calling Aegis::Search_path here. Optimize this (either at the aegis or this level).