In Metaobject protocol (MOP)§
See primary documentation in context for VAR.
Returns the underlying Scalar
object, if there is one.
The presence of a Scalar
object indicates that the object is "itemized".
.say for (1, 2, 3); # OUTPUT: «123», not itemized .say for $(1, 2, 3); # OUTPUT: «(1 2 3)», itemized say (1, 2, 3).VAR ~~ Scalar; # OUTPUT: «False» say $(1, 2, 3).VAR ~~ Scalar; # OUTPUT: «True»
Please refer to the section on item context for more information.