yaml does not work
swuecho opened this issue · 1 comments
swuecho commented
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
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.