Package Info

perl-autobox


Call Methods On Native Types


Development/Libraries/Perl

The autobox pragma allows methods to be called on integers, floats, strings, arrays, hashes, and code references in exactly the same manner as blessed references.

Autoboxing is transparent: 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 value 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.


License: Artistic-2.0
URL: http://search.cpan.org/dist/autobox/

Categories

Releases

Package Version Update ID Released Package Hub Version Platforms Subpackages
3.0.1-bp155.2.11 info GA Release 2023-05-17 15 SP5
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • perl-autobox
3.0.1-bp154.1.22 info GA Release 2022-05-09 15 SP4
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • perl-autobox
2.86-bp153.1.17 info GA Release 2021-03-06 15 SP3
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • perl-autobox
2.86-bp152.3.16 info GA Release 2020-04-16 15 SP2
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • perl-autobox
2.86-bp151.3.1 info GA Release 2019-07-16 15 SP1
  • AArch64
  • s390x
  • x86-64
  • perl-autobox
2.86-bp151.2.16 info GA Release 2019-05-18 15 SP1
  • ppc64le
  • perl-autobox
2.86-bp150.2.4 info GA Release 2018-07-30 15
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • perl-autobox