Openbsd-Search

OpenBSD::Search(3p) Perl Programmers Reference Guide OpenBSD::Search(3p)

Openbsd-Search

OpenBSD::Search(3p) Perl Programmers Reference Guide OpenBSD::Search(3p) # OpenBSD::Search(3p) Perl Programmers Reference Guide OpenBSD::Search(3p) NNAAMMEE # OpenBSD::Search - package names matching framework SSYYNNOOPPSSIISS # use OpenBSD::Search; # pkgspec objects my $search_object = OpenBSD::Search::PkgSpec->new($pattern); my $filter_object = OpenBSD::Search::Filter->keep_most_recent; # need repository to apply to use OpenBSD::PackageRepository::Installed; my $inst = OpenBSD::PackageRepository::Installed->new; my $list_ref = $inst->match_locations($search_object, $filter_object); DDEESSCCRRIIPPTTIIOONN # "OpenBSD::Search" provides a search infrastructure for "OpenBSD::PackageRepository" objects. A given repository can be searched for existing packages using "$repo->match_locations($search1, $filter1, . ...