ingydotnet / yaml-pm

YAML Perl Module
http://search.cpan.org/dist/YAML/
20 stars 27 forks source link

Growing !!perl/regex objects when using utf8 #184

Closed perlpunk closed 6 years ago

perlpunk commented 6 years ago
use YAML;
use Encode;
my $yaml = decode_utf8 q{re : !!perl/regexp OK}; 
for (1..5) {
  $data = Load $yaml;
  $yaml = Dump $data;
}          
say $yaml;
__END__
---                    
re: !!perl/regexp (?^u:(?^u:(?^u:(?^u:(?^u:OK)))))

See https://github.com/ingydotnet/yaml-libyaml-pm/issues/69 and https://github.com/ingydotnet/yaml-libyaml-pm/pull/70

perlpunk commented 6 years ago

Released YAML 1.24_002