$OpenBSD: OpenBSD::PkgSpec.pod,v 1.5 2007/05/14 13:15:28 espie Exp $ =head1 NAME OpenBSD::PkgSpec - C handling =head1 SYNOPSIS use OpenBSD::Search; # which pulls in OpenBSD::PkgSpec when needed my $spec = OpenBSD::Search::PkgSpec->new($pattern); @sublist = $spec->filter(@list); # alternatively @sublist = $spec->match_ref(\@list); =head1 DESCRIPTION C is the canonical interface to C handling. A package specification C<$pattern> is a string that can be used to extract matching package names from a C<@list>. The resulting list C<@sublist> will only hold the package names that match the specification. For performance reason, the result may contain duplicates.