|
Problem:
You want to use a builtin type -- like a number, string, list, or hash -- as if it were an object. Solution:
Just do it:
Discussion: All internal types in perl6 are objects (or more precisely, they are promoted to objects if you choose to use them that way.) You can therefore call object methods on any builtin type. See later recipes for what methods are available for each builtin type.
|