Package : perl-autobox > RPM : perl-autobox-2.790.0-3.mga4.src.rpm
Basic items
Name | perl-autobox |
Version | 2.790.0 |
Release | 3.mga4 |
URL | http://search.cpan.org/dist/autobox |
Group | Development/Perl |
Summary | Call methods on native types |
Size | 78KB |
Arch | x86_64 |
License | GPL+ or Artistic |
Description
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.
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.
Media information
Distribution release | Mageia 4 |
Media name | core-release |
Media arch | x86_64 |
Advanced items
Source RPM | NOT IN DATABASE ?! |
Build time | 2013-10-19 03:06:41 |
Changelog | View in Sophie |
Files | View in Sophie |
Dependencies | View in Sophie |