moose
How can I require a Moose constructor arg that is not a attribute?
I have a Moose object module that should accept a relatively large data structur开发者_如何学Pythone (ds) as one of its constructor arguments. It is used to calculate some of the object\'s attributes.[详细]
2023-01-22 12:42 分类:问答Which KiokuDB backend is suitable for my serialization needs?
I use KiokuDB to store a couple of Moose objects and a couple of simple array structures (hashes and arrays).[详细]
2023-01-22 05:40 分类:问答How can I modify a Moose attribute handle?
Following phaylon\'s answer to \"How can I flexibly add data to Moose objects?\", suppose I have the following Moose attribute:[详细]
2023-01-22 05:11 分类:问答Which recommended Perl modules can serialize Moose objects?
I was usual开发者_如何学Pythonly using Storable with nstore, but now I have a module that has CODE and apparently Storable doesn\'t like that.[详细]
2023-01-22 02:51 分类:问答When should I use `use`?
As long as I can remember, whenever I use a module I include ause line at the beginning of my code. Recently I was writing two Moose object modules that use each other. Look at this over-simplistic e[详细]
2023-01-22 02:01 分类:问答What are 'weak references' in KiokuDB?
What exactly are the weak references that KiokuDB tu开发者_开发问答torialmentions? How do they differ from \'normal\' references?A normal reference prevents the thing being referred to from being gar[详细]
2023-01-21 17:32 分类:问答Is there a reason I should NOT serialize my (Moose) objects using Storable or YAML?
I have a few Moose objects and some other simple hash objects (hashes, arrays) I\'d like to serialize.[详细]
2023-01-21 08:51 分类:问答How can I overload Moose constructors?
Sorry for the Java jargon, but how can I overload Moose constructors? Suppose I\'m representing a segment. I can either take a start point and and point, or a start point a开发者_StackOverflow中文版n[详细]
2023-01-21 06:18 分类:问答How can I make my Perl method more Moose-like?
I am practising Kata Nine: Back to the CheckOut in P开发者_运维百科erl whilst also trying to use Moose for the first time.[详细]
2023-01-21 05:54 分类:问答How can I build multiple attributes with a single builder in Moose?
Using Moose, is it possible to create a builder that builds multiple attributes at once? I have a project in which the object has several \'sets\' of fields - if any member of the set is requested, I[详细]
2023-01-20 20:10 分类:问答