FreeBSD.software
Home/devel/p5-Data-Lock

p5-Data-Lock

1.03devel

Make variables (im)?mutable

Data::Lock makes the specified variable immutable like Readonly. Unlike Readonly which implements immutability via tie, Data::Lock makes use of the internal flag of perl SV so it imposes almost no penalty. Like Readonly, Data::Lock locks not only the variable itself but also elements therein. You can Data::Lock objects as well.

$pkg install p5-Data-Lock
metacpan.org/pod/Data::Lock
Origin
devel/p5-Data-Lock
Size
19.4KiB
License
ART10, GPLv1+
Maintainer
perl@FreeBSD.org
Dependencies
1 packages
Required by
0 packages

Dependencies (1)