- Name: perl-autobox
- Version: 2.85
- Release: 7
- Epoch:
- Group: Development/Languages/Perl
- License: GPL v1+ or Artistic
- Url: http://search.cpan.org/dist/autobox/
- Summary: autobox - call methods on native types
- Architecture: i686
- Size: 84875
- Distribution: PLD 3.0 (Th)
- Vendor: PLD
- Packager: PLD bug tracking system ( http://bugs.pld-linux.org/ )
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.
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.
As with regular objects, autoboxed values are passed as the first
argument of the specified method. Consequently, given a vanilla use
autobox:
- BuildArch:
- ExcludeArch:
- ExclusiveArch:
- Cookie: ep09-pld 1688630454
- Buildhost: ep09-pld