From fa36ac8543c61b8d8270017bb3319114487e227f Mon Sep 17 00:00:00 2001 From: Marc Espie Date: Sat, 12 May 2007 14:54:47 +0000 Subject: document the object interface to PkgSpec. --- usr.sbin/pkg_add/pod/OpenBSD::PkgSpec.pod | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'usr.sbin') 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 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 -- cgit v1.2.3