method my

Documentation for method my assembled from the following types:

class CallFrame

From CallFrame

(CallFrame) method my

method my()

Return a Hash that names all the variables and their values associated with the lexical scope of the frame.

sub some-value {
    my $the-answer = 42;
    callframe(0);
}
 
my $frame = some-value();
say $frame.my<$the-answer># OUTPUT: «42␤»