.^method calls a method on the objectβs metaobject. A metaobject is an instance of the HOW class and contains some additional information about the object. The following two operations, applied to the $i variable, are equivalent and print the list of the methods available for the Int variables.
my Int $i; say $i.^methods(); say $i.HOW.methods($i);