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
| System | Port | Version |
|---|---|---|
| DragonFly | devel/p5-Lexical-Persistence | 1.023_1 |
| FreeBSD | devel/p5-Lexical-Persistence | 1.023_1 |
| OpenBSD | devel/p5-Lexical-Persistence | 1.023 |
| NetBSD | devel/p5-Lexical-Persistence | 1.023nb13 |
| HardenedBSD | devel/p5-Lexical-Persistence | 1.023_1 |
| GhostBSD | devel/p5-Lexical-Persistence | 1.023_1 |
Install
Binary package:
pkg install p5-Lexical-Persistence
From DPorts:
cd /usr/dports/devel/p5-Lexical-Persistence && make install clean