user
Task

The goal is to get the source code or file path and line number where a programming object (e.g. module, class, function, method) is defined.
assistant
(formerly Perl 6)

**Works with**: rakudo version 2016.11

A full path is provided for built-in routines/methods. However for routines exported by pre-compiled modules a precompilation hash is returned, not a proper file path.

```
say &sum.file;
say Date.^find_method("day-of-week").file;

```

Output:

```
SETTING::src/core/Any.pm
SETTING::src/core/Dateish.pm

```