OpenBSD Handbook

Current snapshot · amd64 · Generated 2026-09-09

p5-Switch-2.17p0

switch statement for Perl

Back to search · Project homepage

Description

Switch.pm provides the syntax and semantics for an explicit case mechanism for Perl. The syntax is minimal, introducing only the keywords "switch" and "case" and conforming to the general pattern of existing Perl control structures. The semantics are particularly rich, allowing any one (or more) of nearly 30 forms of matching to be used when comparing a switch value with its various cases. This is from CPAN and works the same as a deprecated function in Perl base which will be removed in a future version.

Package information

Ports path
devel/p5-Switch
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

None listed in sqlports.

Used by (4 dependency relationships)

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

Installing and updating packages · Package details as JSON