LogoopenSUSE Build Service > Projects
Sign Up | Log In

call methods on native types

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.

Source Files

Filename Size Changed Actions
autobox-2.84.tar.gz 78.5 KB over 1 year ago Download File
cpanspec.yml 468 Bytes about 3 years ago Download File
perl-autobox.changes 2.42 KB over 1 year ago Download File
perl-autobox.spec 2.25 KB over 1 year ago Download File

Comments for home:vpereirabr:AP (0)