BSD Ports

devel/p5-Switch 2.17p0 OpenBSD

switch statement for Perl

System
OpenBSD
Repository
OpenBSD ports
Maintainer
The OpenBSD ports mailing-list <[email protected]>
Categories
devel, perl5

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.

In the other systems

SystemPortVersion
OpenBSDdevel/p5-Switch2.17p0
FreeBSDlang/p5-Switch2.17_1
NetBSDlang/p5-Switch2.17nb10
DragonFlylang/p5-Switch2.17_1
MidnightBSDlang/p5-Switch2.17
HardenedBSDlang/p5-Switch2.17_1
GhostBSDlang/p5-Switch2.17_1

Install

Binary package:

pkg_add p5-Switch

From the ports tree:

cd /usr/ports/devel/p5-Switch && make install

Dependencies

Required by 1