BSD Ports

devel/p5-accessors 1.01_1 DragonFly

Create accessor methods in caller's package

System
DragonFly
Repository
DPorts
Maintainer
[email protected] (as in FreeBSD)
License
ART10, GPLv1+
Categories
devel, perl5
Package size
20.5 KiB, 32.5 KiB installed

Description

The accessors pragma lets you create simple accessors at compile-time.

This saves you from writing them by hand, which tends to result in cut-n-paste errors and a mess of duplicated code. It can also help you reduce the amount of unwanted direct-variable access that may creep into your code base when you're feeling lazy. accessors was designed with laziness in mind.

Method-chaining accessors are generated by default. This may be changed in future versions! If you want backwards compatibility use accessors::chained and wait until the dust settles.

See accessors::classic for accessors that always return the current value if you don't like method chaining.

In the other systems

The newest version among them is 1.01, as upstream numbers it.

SystemPortVersionVulnerabilitiesStatusMaintainerLast update
DragonFlydevel/p5-accessors1.01_1 newestnone known-[email protected]-
FreeBSDdevel/p5-accessors1.01_1 newestnone known-[email protected]-
OpenBSDdevel/p5-accessors1.01p2 newestno data-The OpenBSD ports mailing-list <[email protected]>-
NetBSDdevel/p5-accessors1.01nb17 newestnone known-[email protected]2026-07-16
HardenedBSDdevel/p5-accessors1.01_1 newestno data-[email protected]-
GhostBSDdevel/p5-accessors1.01_1 newestno data-[email protected]-

Compare across BSDs

Install

Binary package:

pkg install p5-accessors

From DPorts:

cd /usr/dports/devel/p5-accessors && make install clean

Dependency graph

Ports that need it on the left, what it needs to run on the right; at most 8 of each. "Dependencies" below lists them all.

Dependencies

Run dependencies 1
Required by 1