The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.
#!perl -w

use strict;

{
    package Foo;
    use Test::More::Behaviours 'no_plan';

    sub foo {
        test 'caller() is not munged' => sub {
            is_deeply [caller], ['Foo', $0, 19], 'basic caller()' or diag join " ", caller;
            is_deeply [(caller(0))[0..7]],
                      ['Foo', $0, 19, 'Foo::foo', 1, undef, undef, undef],
                      'hardcore caller()';
        }
    }

#line 19
    foo();
}