coderef

Which recommended Perl modules can serialize Moose objects?

99封情书 提交于 2019-12-19 09:53:37
问题 I was usually using Storable with nstore , but now I have a module that has CODE and apparently Storable doesn't like that. I found YAML (and YAML::XS which I can't really get to work). I also experimented a bit with MooseX::Storage without much success. Are there other alternatives? What would you recommend? 回答1: You can dump a coderef with Data::Dumper after setting $Data::Dumper::Deparse to a true value, but this is only intended for debugging purposes, not for serialization. I would

Which recommended Perl modules can serialize Moose objects?

痞子三分冷 提交于 2019-12-01 09:26:12
I was usually using Storable with nstore , but now I have a module that has CODE and apparently Storable doesn't like that. I found YAML (and YAML::XS which I can't really get to work ). I also experimented a bit with MooseX::Storage without much success. Are there other alternatives? What would you recommend? Ether You can dump a coderef with Data::Dumper after setting $Data::Dumper::Deparse to a true value, but this is only intended for debugging purposes, not for serialization. I would suggest you go back to looking at why MooseX::Storage isn't working out for you, as the authors tried