summaryrefslogtreecommitdiff
path: root/usr.sbin/pkg_add
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2023-05-16 11:20:01 +0000
committerMarc Espie <espie@cvs.openbsd.org>2023-05-16 11:20:01 +0000
commit1761611aa13d99628ce4e26aa41d243b536f25e8 (patch)
treee32f459214685c1243878ce9ebf617ddbcbded48 /usr.sbin/pkg_add
parentb5263b4d516ae2e8e6c2adef1a108dd89707dc16 (diff)
the old "indirect method call" was deprecated recently (apart from
mimicing perl base syntax on fh objects and the likes), so use the more consistent class->method calling method in examples (and in code)
Diffstat (limited to 'usr.sbin/pkg_add')
-rw-r--r--usr.sbin/pkg_add/OpenBSD/IdCache.pod10
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/IdCache.pod b/usr.sbin/pkg_add/OpenBSD/IdCache.pod
index e024130f22b..dba9910ae32 100644
--- a/usr.sbin/pkg_add/OpenBSD/IdCache.pod
+++ b/usr.sbin/pkg_add/OpenBSD/IdCache.pod
@@ -1,4 +1,4 @@
-$OpenBSD: IdCache.pod,v 1.1 2020/12/20 15:30:58 daniel Exp $
+$OpenBSD: IdCache.pod,v 1.2 2023/05/16 11:20:00 espie Exp $
=head1 NAME
@@ -8,16 +8,16 @@ OpenBSD::IdCache - cache for user and group look-ups
use OpenBSD::IdCache;
- my $ucache = new OpenBSD::UidCache;
+ my $ucache = OpenBSD::UidCache->new;
my $uid = $ucache->lookup("espie");
- my $gcache = new OpenBSD::GidCache;
+ my $gcache = OpenBSD::GidCache->new;
my $gid = $gcache->lookup("wheel", 0);
- my $unamecache = new OpenBSD::UnameCache;
+ my $unamecache = OpenBSD::UnameCache->new;
my $name = $unamecache->lookup($uid);
- my $gnamecache = new OpenBSD::GnameCache;
+ my $gnamecache = OpenBSD::GnameCache->new;
my $grname = $gnamecache->lookup($gid);
=head1 DESCRIPTION