![]() This can possibly head off problems for you that you haven't realized you were likely to run into.Īlso, when you are using Dumper for serialization, it's good to understand all the options Data::Dumper gives you for output. ![]() If you are rolling your own serialization, you might want to look at the pros and cons mentioned there (speed, ability to handle things like regular expressions and circular references, etc). It's just good to get the perspective of people who've run into issues before, etc. output inline/compact YAML, that would be as near to perfect as IĪlso see the points people made in the comments. If JSYNC faster and supported Regexp, or if YAML::XS or YAML::Syck My two favorites are Storable and YAML::XS. In conclusion, choice is good but I have not found my perfect general He concludes that there are features missing from all of them: He mentions Data::Dumper, Storable, YAML::XS, Data::Dump, XML::Dumper, JSON::XS, JSYNC, and FreezeThaw. ![]() For anyone looking at this and wondering whether to roll their own serialization, there might be some benefit gained by looking at this blog post that compares a list of several existing serializers and gives some advantages and disadvantages of each:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |