The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.
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");
}