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
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