Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
perlpunk opened this issue Jul 5, 2020 · 0 comments
Open

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

perlpunk opened this issue Jul 5, 2020 · 0 comments

Comments

@perlpunk
Copy link
Collaborator

perlpunk commented Jul 5, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant