call methods on native types

Edit Package perl-autobox

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.

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.

  • Sources inherited from project openSUSE:Leap:15.2
  • Download package
  • osc -A checkout openSUSE:Leap:15.2:Update/perl-autobox && cd $_
  • Create Badge
Source Files
Filename Size Changed
autobox-2.86.tar.gz 0000085350 83.3 KB almost 5 years
cpanspec.yml 0000000468 468 Bytes almost 8 years
perl-autobox.changes 0000003370 3.29 KB almost 5 years
perl-autobox.spec 0000002367 2.31 KB almost 5 years
Comments 0
openSUSE Build Service is sponsored by