Path to this page:
./
devel/p5-autobox,
Perl 5 module to add methods on native types
Branch: CURRENT,
Version: 3.0.2,
Package name: p5-autobox-3.0.2,
Maintainer: pkgsrc-usersThe Perl 5 module autobox provides an autobox pragma. It allows
methods to be called on integers, floats, strings, arrays, hashes,
and code references in exactly the same manner as blessed references.
The autoboxing is transparent: boxed values are not blessed into
their (user-defined) implementation class (unless the method elects
to bestow such a blessing) - they simply use its methods as though
they are.
The classes (packages) into which the native types are boxed are
fully configurable. By default, a method invoked on a non-object
is assumed to be defined in a class whose name corresponds to the
ref() type of that value - or SCALAR if the value is a non-reference.
This mapping can be overriden by passing key/value pairs to the use
autobox statement, in which the keys represent native types, and
the values their associated classes.
Required to run:[
lang/perl5] [
devel/p5-Scope-Guard] [
devel/p5-IPC-System-Simple]
Required to build:[
pkgtools/cwrappers]
Master sites: (Expand)
Filesize: 156.625 KB
Version history: (Expand)
- (2024-10-04) Updated to version: p5-autobox-3.0.2
- (2023-07-06) Updated to version: p5-autobox-3.0.1nb6
- (2022-06-28) Updated to version: p5-autobox-3.0.1nb5
- (2021-05-25) Updated to version: p5-autobox-3.0.1nb4
- (2020-09-01) Updated to version: p5-autobox-3.0.1nb3
- (2019-08-11) Updated to version: p5-autobox-3.0.1nb2
CVS history: (Expand)