moose / MooseX-Storage

A serialization framework for Moose classes
http://metacpan.org/release/MooseX-Storage/
Other
6 stars 11 forks source link

yaml does not work #4

Closed swuecho closed 10 years ago

swuecho commented 10 years ago

copy and paste the code in

https://metacpan.org/pod/MooseX::Storage::Format::YAML

get the following error:

YAML::XS::Load Error: The problem:

    mapping values are not allowed in this context
was found at document: 1, line: 2, column: 10

I see the comment

#When I add YAML::LibYAML
# Tests break because tye YAML is invalid...?
# -dcp

Is there a fix for this? thanks.

swuecho commented 10 years ago
my $p2 = Point->thaw(<<YAML);
----
__CLASS__: "Point"
x: 10
y: 10
YAML

find the problem,

should be '---' instead of '----' this is too easy to find.