From: espie Date: Tue, 16 May 2023 11:20:00 +0000 (+0000) Subject: the old "indirect method call" was deprecated recently (apart from X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=89ac5eeab2789bd991f5dceeae5235026953b916;p=openbsd 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) --- 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