diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2007-05-12 14:54:47 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2007-05-12 14:54:47 +0000 |
commit | fa36ac8543c61b8d8270017bb3319114487e227f (patch) | |
tree | 7134c247db1918184eac9188368267af23919938 /usr.sbin/pkg_add/pod | |
parent | b04c1f3e616aacf08976b9873e18ca3480076e0c (diff) |
document the object interface to PkgSpec.
Diffstat (limited to 'usr.sbin/pkg_add/pod')
-rw-r--r-- | usr.sbin/pkg_add/pod/OpenBSD::PkgSpec.pod | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/usr.sbin/pkg_add/pod/OpenBSD::PkgSpec.pod b/usr.sbin/pkg_add/pod/OpenBSD::PkgSpec.pod index 17362be822f..3711a501b7a 100644 --- a/usr.sbin/pkg_add/pod/OpenBSD::PkgSpec.pod +++ b/usr.sbin/pkg_add/pod/OpenBSD::PkgSpec.pod @@ -1,4 +1,4 @@ -$OpenBSD: OpenBSD::PkgSpec.pod,v 1.3 2005/10/07 21:54:22 jmc Exp $ +$OpenBSD: OpenBSD::PkgSpec.pod,v 1.4 2007/05/12 14:54:46 espie Exp $ =head1 NAME @@ -7,7 +7,10 @@ OpenBSD::PkgSpec - C<packages-specs(7)> handling =head1 SYNOPSIS use OpenBSD::PkgSpec; - @sublist = OpenBSD::PkgSpec::match($pattern, @list); + my $spec = OpenBSD::PkgSpec->new($pattern); + @sublist = $spec->match(@list); + # alternatively + @sublist = $spec->match_ref(\@list); =head1 DESCRIPTION |