$OpenBSD: OpenBSD::PkgSpec.pod,v 1.7 2010/01/12 10:14:37 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); =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. Note that any pattern will create a C object. If the syntax is incorrect, the resulting object won't match anything. Use C<$spec-Eis_valid> to check for correctness.