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 strict;
use Test::More tests => 1;
use re::engine::Plugin (
    exec => sub {
        my ($re, $str) = @_;

        $$str = "eek";

        return 1;
    },
);

my $sv = "ook";
if (\$sv =~ /pattern/) {
    is($sv, "eek");
}