BSD Ports

devel/p5-Keyword-Declare 0.001018 DragonFly

Declare new Perl keywords...via a keyword...named keyword

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

Description

Keyword::Declare implements a new Perl keyword: keyword, which you can use to specify other new keywords.

Normally, to define new keywords in Perl, you either have to write them in XS (shiver!) or use a module like Keyword::Simple or Keyword::API. Using any of these approaches requires you to grab all the source code after the keyword, manually parse out the components of the keyword's syntax, construct the replacement source code, and then substitute it for the original source code you just parsed.

Using Keyword::Declare, you define a new keyword by specifying its name and a parameter list corresponding to the syntactic components that must follow the keyword. You then use those parameters to construct and return the replacement source code. The module takes care of setting up the keyword, and of the associated syntax parsing, and of inserting the replacement source code in the correct place.

In the other systems

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

SystemPortVersionVulnerabilitiesStatusMaintainerLast update
DragonFlydevel/p5-Keyword-Declare0.001018 newestnone known-[email protected]-
FreeBSDdevel/p5-Keyword-Declare0.001018 newestnone known-[email protected]-
HardenedBSDdevel/p5-Keyword-Declare0.001018 newestno data-[email protected]-
GhostBSDdevel/p5-Keyword-Declare0.001018 newestno data-[email protected]-

Install

Binary package:

pkg install p5-Keyword-Declare

From DPorts:

cd /usr/dports/devel/p5-Keyword-Declare && 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 4
Required by 1