OpenBSD Handbook

Current snapshot · amd64 · Generated 2026-09-09

p5-accessors-1.01p2

create accessor methods in caller's package

Back to search · Project homepage

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 codebase when you're feeling lazy. accessors was designed with laziness in mind.

Package information

Ports path
devel/p5-accessors
Package architecture
*
Maintainer
The OpenBSD ports mailing-list <ports@openbsd.org>
Categories
devel, perl5
Available flavors
None listed

These are ports metadata. Binary availability depends on the release, architecture and mirror. Build and test dependencies are not an installation checklist.

Direct dependencies

Build

Used by (2 dependency relationships)

Includes library, runtime, build and test relationships. Results load 100 at a time.

Installing and updating packages · Package details as JSON