in reply to Re^4: Tring to write script to add and get employee detials to hash
in thread Tring to write script to add and get employee detials to hash
So a quick test showed that both YAML::XS and JSON::XS round-trip some simple data structures equally well. So now I'm not sure anymore if back then I was testing different modules which did have issues round-tripping some data structures, or whether I'm just remembering wrong.
One thing I did remember is that I like YAML's facilities for including string literals, kind of like here docs:
--- foo: | Hello World: cool I'm a three-line string literal
AFAIK there's no here docs in JavaScript / JSON...
|
|---|