BSD Ports

devel/p5-Lexical-Persistence 1.023_1 FreeBSD

Persistent lexical variable values for arbitrary calls

System
FreeBSD
Repository
FreeBSD ports
Maintainer
[email protected]
License
ART10, GPLv1+
Categories
devel, perl5
Package size
19.4 KiB, 58.8 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
FreeBSDdevel/p5-Lexical-Persistence1.023_1
OpenBSDdevel/p5-Lexical-Persistence1.023
NetBSDdevel/p5-Lexical-Persistence1.023nb13
DragonFlydevel/p5-Lexical-Persistence1.023_1
HardenedBSDdevel/p5-Lexical-Persistence1.023_1
GhostBSDdevel/p5-Lexical-Persistence1.023_1

Install

Binary package:

pkg install p5-Lexical-Persistence

From the ports tree:

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

To depend on this port in another port's Makefile:

RUN_DEPENDS=	p5-Lexical-Persistence>0:devel/p5-Lexical-Persistence

Packages

The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.

Repositoryaarch64amd64armv6armv7i386
FreeBSD:14:latest1.023_11.023_11.023_11.023_11.023_1
FreeBSD:14:quarterly1.023_11.023_1n/a1.023_11.023_1
FreeBSD:15:latest1.023_11.023_1n/a1.023_11.023_1
FreeBSD:15:quarterly1.023_11.023_1n/an/an/a
FreeBSD:16:latest1.023_11.023_1n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/a

Dependencies

As this port's Makefile names them.

Build 2

Runtime 2

The full lists below include those, and their dependencies in turn.

Build dependencies 4
Run dependencies 4

Configuration

No options to configure.

USES
perl5
Service scripts
none

Files

pkg-plist 2
  • %%SITE_PERL%%/Lexical/Persistence.pm
  • %%PERL5_MAN3%%/Lexical::Persistence.3.gz
distinfo 1
FileSizeSHA256
Lexical-Persistence-1.023.tar.gz2760994d2fa4a743885ca9cea9f7042d9e7a3a69f5bd7cc18aa630c7f7f5e8ae36944
Master sites 1
  • CPAN

Commit history 0

No commits in the history this site was built from.