method file
1 | class Code |
1.1 | (Code) method file |
2 | class CallFrame |
2.1 | (CallFrame) method file |
3 | class Backtrace::Frame |
3.1 | (Backtrace::Frame) method file |
Documentation for method file
assembled from the following types:
class Code
From Code
(Code) method file
Defined as:
method file(Code: --> Str)
Returns the name of the file in which the code object was declared.
say :<+>.file;
class CallFrame
From CallFrame
(CallFrame) method file
method file()
This is a shortcut for looking up the file
annotation. Therefore, the following code prints True
.
my = callframe(0);say .file eq .annotations<file>;
class Backtrace::Frame
From Backtrace::Frame
(Backtrace::Frame) method file
Defined as:
method file(Backtrace::Frame --> Str)
Returns the file name.
my = Backtrace.new;my = [0];say .file;