Question:
Is there / What is a Perl6 Powershells counterpart get-memberto βanalyzeβ variable attributes?
Explanation:
In Perl 6, you can get the properties / attributes of a variable, for example:
my $num=16.03;
say $num.numerator;
say $num.denominator;
say $num.nude;
say $num.WHAT;
How can I find out which attributes / properties (numerator, etc.) and methods / functions (WHAT) have a variable?
In Powershell, I would pass a variable get-member, for example:
$num | get-memberand all properties and functions would be displayed.
source
share