Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the YAML-LibYAML CPAN distribution.

Report information
The Basics
Id: 62399
Status: open
Priority: 0/
Queue: YAML-LibYAML

People
Owner: Nobody in particular
Requestors: david.breimann [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Can't load dumped object which include CODE refs
Date: Sat, 23 Oct 2010 20:09:13 +0200
To: bug-YAML-LibYAML [...] rt.cpan.org
From: David Breimann <david.breimann [...] gmail.com>
On Sat Oct 23 14:09:21 2010, david.breimann@gmail.com wrote: Show quoted text
Link you provided is broken. About issue - next code will fail: use YAML::XS; $YAML::XS::UseCode = 1; Load(Dump(sub { 1 }));
I'm seeing this problem as well. As far as I can tell, there's no support whatsoever in the code for *loading* YAML with code refs. The test t/code.t only tests dumping. If I add a test that calls "Load($yaml)," the resulting error is, "bad tag found for scalar: 'tag:yaml.org,2002:perl/code'." This is a significant problem, because Storable is now failing under Perl 5.10.1. With Storable failing and YAML::XS unable to handle coderefs, there is NO trustworthy serialization available at this time.