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

Dumping to string fails [rt.cpan.org #96882] #22

Open
toddr opened this issue May 11, 2017 · 0 comments
Open

Dumping to string fails [rt.cpan.org #96882] #22

toddr opened this issue May 11, 2017 · 0 comments

Comments

@toddr
Copy link
Member

toddr commented May 11, 2017

Migrated from rt.cpan.org#96882 (status was 'new')

Requestors:

From [email protected] on 2014-07-02 11:02:21:

I am trying to use YAML::Syck::DumpFile to dump data structures into a string (using either IO::String or IO::Scalar). With version 1.07 of YAML::Syck it works:

perl -MIO::String -MYAML::Syck -wE 'my $data; my $io = IO::String->new($data); YAML::Syck::DumpFile( $io, { a => 1, b => 2 } ); say $data'
--- 
a: 1
b: 2


and with version 1.27 it fails:

perl -MIO::String -MYAML::Syck -wE 'my $data; my $io = IO::String->new($data); YAML::Syck::DumpFile( $io, { a => 1, b => 2 } ); say $data'
Error writing to filehandle IO::String=GLOB(0x1a8ab48): Bad file descriptor

Let me know if you need any further information to help debug the problem.

Thanks,

Stephen Quinney

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