Why isn't there a Perl6::Caller on the CPAN? See the caller function in Synopsis 6 for an idea of what I want:
print "In ", Caller->sub,
" called from ", Caller->file,
" line ", Caller->line, "\n";
Of course, you'd want to support everything that caller does, including support for how many levels back you want to go. Shouldn't be too hard to write.
You should even be able to optionally override CORE::caller:
$ perl -le 'print prototype "CORE::caller"'
(prototype returns 'undef' if the builtin is not overrideable.)