BSD Ports

devel/p5-Lexical-Persistence 1.023_1 DragonFly

Persistent lexical variable values for arbitrary calls

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

Description

Lexical::Persistence does a few things, all related. Note that all the behaviors listed here are the defaults. Subclasses can override nearly every aspect of Lexical::Persistence's behavior.

Lexical::Persistence lets your code access persistent data through lexical variables. This example prints "some value" because the value of $x persists in the $lp object between setter() and getter().

    use Lexical::Persistence;

    my $lp = Lexical::Persistence->new();
    $lp->call(\\&setter);
    $lp->call(\\&getter);

    sub setter { my $x = "some value" }
    sub getter { print my $x, "\\n" }

In the other systems

SystemPortVersion
DragonFlydevel/p5-Lexical-Persistence1.023_1
FreeBSDdevel/p5-Lexical-Persistence1.023_1
OpenBSDdevel/p5-Lexical-Persistence1.023
NetBSDdevel/p5-Lexical-Persistence1.023nb13
HardenedBSDdevel/p5-Lexical-Persistence1.023_1
GhostBSDdevel/p5-Lexical-Persistence1.023_1

Install

Binary package:

pkg install p5-Lexical-Persistence

From DPorts:

cd /usr/dports/devel/p5-Lexical-Persistence && make install clean

Dependencies

Run dependencies 3