The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.
package My::Target::patch::p3;

use parent qw(Module::Patch);

our %config;

sub patch_data {
    return {
        v => 3,
        patches => [
            {
                action => 'wrap',
                mod_version => '0.12',
                sub_name => 'bar',
                code => sub { "bar from p3" },
            },
        ]
    };
}

1;
# ABSTRACT: Patch module for My::Target