DOKK / manpages / debian 12 / libmenlo-perl / Menlo::Index::MetaDB.3pm.en
Menlo::Index::MetaDB(3pm) User Contributed Perl Documentation Menlo::Index::MetaDB(3pm)

Menlo::Index::MetaDB - Search index via CPAN MetaDB

  use CPAN::Common::Index::MetaDB;
  $index = CPAN::Common::Index::MetaDB->new;
  $index->search_packages({ package => "Moose" });
  $index->search_packages({ package => "Moose", version_range => ">= 2.0" });

This module implements a CPAN::Common::Index that searches for packages against the same CPAN MetaDB API used by cpanminus.

There is no support for advanced package queries or searching authors. It just takes a package name and returns the corresponding version and distribution.

2022-12-13 perl v5.36.0