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.
Package Version | Update ID | Released | Package Hub Version | Platforms | Subpackages |
---|---|---|---|---|---|
3.0.1-bp156.3.3 info | GA Release | 2023-12-07 | 15 SP6 |
|
|
3.0.1-bp155.2.11 info | GA Release | 2023-05-17 | 15 SP5 |
|
|
3.0.1-bp154.1.22 info | GA Release | 2022-05-09 | 15 SP4 |
|
|
2.86-bp153.1.17 info | GA Release | 2021-03-06 | 15 SP3 |
|
|
2.86-bp152.3.16 info | GA Release | 2020-04-16 | 15 SP2 |
|
|
2.86-bp151.3.1 info | GA Release | 2019-07-16 | 15 SP1 |
|
|
2.86-bp151.2.16 info | GA Release | 2019-05-18 | 15 SP1 |
|
|
2.86-bp150.2.4 info | GA Release | 2018-07-30 | 15 |
|
|