"be consistent" | |
PerlMonks |
Re: Caching or using values across multiple programsby ELISHEVA (Prior) |
on May 06, 2009 at 05:14 UTC ( [id://762166]=note: print w/replies, xml ) | Need Help?? |
Storable does a binary dump. That could be an efficiency bonus or a debugging nightmare. If you want something you can inspect and read, consider either JSON or YAML. Personally, I would recommend YAML. I've worked with both and YAML is a lot more flexible than JSON, especially when it comes to hashes. For example,
Despite a subset of nearly alike syntax, there are some small but very differences in YAML and JSON syntax. For example, YAML strings need to end with a newline. JSON barfs when they do. If you only have time to learn one, YAML will cover more use cases and take you farther. Best, beth
In Section
Seekers of Perl Wisdom
|
|