I'm developing a plugin that applies a patch Perl/perl5#23178
It fixes a build error of Perl 5.42.0 on windows.
source file:
# lib/Devel/PatchPerl/Plugin/MyPlugin.pm
package Devel::PatchPerl::Plugin::MyPlugin;
use strict;
use warnings;
sub patchperl {
my ($self, $perl) = @_;
warn "my patching logic here\n";
}
1;
# patch.pl
use strict;
use warnings;
use FindBin;
use lib "$FindBin::Bin/lib";
$ENV{PERL5_PATCHPERL_PLUGIN} = 'Devel::PatchPerl::Plugin::MyPlugin';
use Devel::PatchPerl;
Devel::PatchPerl->patch_source( '5.42.0', './perl-5.42.0' );
1;
expected result:
$ perl patch.pl
my patching logic here
actual result:
$ perl patch.pl
Nothing else to do, '5.42.0' is fine