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 FindBin;
BEGIN { push @INC, $FindBin::Bin }

use TestYAML tests => 1;
use YAML::Syck;
use Data::Dumper;

my $bref = bless \eval { my $scalar = 'YAML::Syck' }, 'foo';
my $bref2bref = bless \$bref, 'bar';

my $dd = Dumper $bref2bref;
my $edd;
{
    no strict 'vars';
    $edd = eval $dd;
}

my $x = 42;
bless \$x, "numifyffoo";

is Dumper( Load( Dump($bref2bref) ) ), $dd, 'YAML::Syck'