Openbsd-Pkgspec

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

Openbsd-Pkgspec

OpenBSD::PkgSpec(3p) Perl Programmers Reference Guide OpenBSD::PkgSpec(3p) # OpenBSD::PkgSpec(3p) Perl Programmers Reference Guide OpenBSD::PkgSpec(3p) NNAAMMEE # OpenBSD::PkgSpec - "packages-specs(7)" handling SSYYNNOOPPSSIISS # use OpenBSD::Search; # which pulls in OpenBSD::PkgSpec when needed my $spec = OpenBSD::Search::PkgSpec->new($pattern); @sublist = $spec->filter(@list); DDEESSCCRRIIPPTTIIOONN # "OpenBSD::PkgSpec" is the canonical interface to "packages-specs(7)" handling. A package specification $pattern is a string that can be used to extract matching package names from a @list. The resulting list @sublist will only hold the package names that match the specification. ...