The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.
=== Circular Reference Protection
# When we try to serialize, it should NOT infinite loop
--- perl
$VAR1 = [
          {
            'a' => 'b',
            'c' => [
                     {},
                     2
                   ]
          },
          []
        ];
$VAR1->[0]{'c'}[0] = $VAR1->[0];
$VAR1->[1] = $VAR1->[0]{'c'};
[ $VAR1 ]

--- error: E_CIRCULAR