YAML Problem

Z

Zimmermann

hi *,


I would like to serialize a hash,
that keys contain one or more comma's

serialize works fine, but deserialize say: Invalid element in map


someone can help me?



i use YAML-0.35

small example

DB<16> $a = {'a,b' => 1}

DB<17> x $a
0 HASH(0x12f580c)
'a,b' => 1

DB<18> $b = Dump($a)

DB<19> x $b
0 '--- #YAML:1.0
a,b: 1
'

DB<20> $c = Load($b)
--- !perl/YAML::Error
code: YAML_LOAD_ERR_BAD_MAP_ELEMENT
msg: Invalid element in map
line: 2
document: 1
....



thx
David
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,774
Messages
2,569,596
Members
45,142
Latest member
DewittMill
Top