"[YAML] maps to Perl data structures better than JSON ..."
I was not aware of that. I do recall having some issues with de-serializing anonymous subs into Perl data from JSON text, but i would like for you to give more details as to why you have this opinion, please. In the meantime, i found this link which has more interesting perspectives on which to use: http://stackoverflow.com/questions/1876735/should-i-use-yaml-or-json-to-store-my-perl-data
I myself have opted to use JSON for feeding information to programs (robots) and YAML for feeding information to humans. :) I also try to keep my data simple, which means not having to worry about anonymous sub references. I strive to keep my data in my data and my code in my code.
jeffa
L-LL-L--L-LL-L--L-LL-L-- -R--R-RR-R--R-RR-R--R-RR B--B--B--B--B--B--B--B-- H---H---H---H---H---H--- (the triplet paradiddle with high-hat)
In reply to Re^4: Tring to write script to add and get employee detials to hash
by jeffa
in thread Tring to write script to add and get employee detials to hash
by yedukondalu
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |