Is there a perl6 counterpart of powershells get-member to "analyze" a variable(-object)?

Viewed 127

Question: Is there/What is the Perl6 counterpart of Powershells get-member to "analyse" the attributes of a variable?

Explanation: In Perl 6 you can get properties/attributes of a variable, e.g.:

my $num=16.03;
say $num.numerator;   # output: 1603
say $num.denominator; # output: 100
say $num.nude;        # output: (1603 100)
say $num.WHAT;        # output: (Rat) 

How can I find out, which attributes/properties (numerator etc.) and methods/functions (WHAT) a variable has?
In Powershell I would pipe the variable to get-member, like: $num | get-member and would get all properties and function displayed.

1 Answers
Related