The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.
use Test;
use Devel::TraceCalls;
use strict;

sub f { $_ }

my @tests = (
sub {
    $_ = "HEY!";
    ok f, "HEY!";
},

sub {
    $_ = "HEY!";
    trace_calls "f";
    ok f, "HEY!";
},

);

plan tests => scalar @tests;

$_->() for @tests;