subname
ErrorsCollection

subname

Synthesised documentation from type/Backtrace/Frame

From type/Backtrace/Frame

See Original text in context

method subname(Backtrace::Frame:D --> Str)

Returns the name of the enclosing subroutine.

my $bt = Backtrace.new;
my $btf = $bt[0];
say $btf.subname;