ingydotnet / yaml-libyaml-pm

Perl Binding to libyaml
http://search.cpan.org/dist/YAML-LibYAML/
33 stars 37 forks source link

Blessed globs like IO::File are not dumped correctly #98

Open perlpunk opened 4 years ago

perlpunk commented 4 years ago
use 5.010;
use Data::Dumper;
use YAML::XS;
use IO::File;
my $fh = IO::File->new("< dist.ini");
my $dump = YAML::XS::Dump($fh);
say $dump;
my $load = YAML::XS::Load($dump);
say Dumper $load;
__END__
--- &1 !!perl/ref
=: *1

$VAR1 = \$VAR1;

Somehow the glob gets completely lost and it is dumped as a cyclic reference.