On 05/27/2018 03:42 PM, Brian Duggan wrote:
On Sunday, May 27, ToddAndMargo wrote:
Hi Brian,

`^name` is sweet.  Why the caret?  (I realize it won't work without it.)

The caret is shorthand for .HOW.name(object), i.e.

        ~ $ perl6 -e 'say 12.^name'
        Int

same thing:

        ~ $ perl6 -e 'say 12.HOW.name(12)'
        Int

Brian


Thank you!

Reply via email to