OrePAN2::Index - Index
This is a module to manipulate 02packages.details.txt.
my $index = OrePAN2::Index->new(%attr)
$index->load($filename)
Load an existing 02.packages.details.txt
my ($version, $path) = $index->lookup($package)
Perform a package lookup on the index.
$index->delete_index($package)
Delete a package from the index.
$index->add_index($package, $version, $path)
Add a new entry to the index.
$index->as_string()
Returns the content of the index as a string. Some of the index metadata can cause merge conflicts when multiple developers are working on the same project. You can avoid this problem by using a paring down the metadata. "simple" defaults to 0.
$index->as_string( simple => 1 );
Make index as string.
To install OrePAN2, copy and paste the appropriate command in to your terminal.
cpanm
cpanm OrePAN2
CPAN shell
perl -MCPAN -e shell install OrePAN2
For more information on module installation, please visit the detailed CPAN module installation guide.