moose
Strange behaviour of a Socket attribute in a Moose Object
I have a Moose Object which has a IO::Socket::INET object as one of its attributes: has socket => ([详细]
2023-02-26 06:35 分类:问答How can you create private/public variable and functions using Moose?
I am going through the Moose recipes and开发者_运维技巧 I still cannot see if I can create private variables and functions using it? Is it possible? If yes how to create them with Moose?Like daxim poi[详细]
2023-02-25 17:57 分类:问答How can I access Moose attributes from class methods?
Consider the following code: package Test1; use Moose; has \'something\' => ( is => \'rw\', default => \'BLAH!\'[详细]
2023-02-24 00:18 分类:问答When should I make a Moose class immutable when I'm actually using ->meta?
Normally I would finalize a class at compilation via __PACKAGE__->meta->make_immutable at the end of the class. However, when should I be making a class immutable that composes roles into itself[详细]
2023-02-20 03:14 分类:问答Why does modifying a Moose class in BUILD cause this error?
I\'m having trouble with this Moose-related error when using BUILD.When I change to BUILDALL it appears to work. Note the use of Class::MOP::load_class[详细]
2023-02-18 08:15 分类:问答Perl OO using Moose - best way to code delegation example?
Perl\'s Moose is different from other object systems, so it\'s not always clear how to translate an example known from other languages into Moose lingo. Consider the following Java example of Rectangl[详细]
2023-02-18 01:29 分类:问答Perl Moose - check if variable is a Moose data type
I\'m converting a legacy application to use Moose (and Catalyst) and have the following question. How do I determine Moose Type of data input by a user?[详细]
2023-02-15 16:51 分类:问答How can I declare/use static members in Moose?
I am usi开发者_如何学Pythonng Moose objects, but I need to declare static members for things that will be done just once and are not object related.[详细]
2023-02-14 04:22 分类:问答Why is this line of Perl code throwing a numeric gt warning?
I have the following conditional: if ($self->path ne \'contact_us\' && !grep { $status == $_ } 2, 3, 8) {[详细]
2023-02-13 05:27 分类:问答Set::Object with type constraint checking
I am trying to extend Set::Object in order to allow type constraint checking when inserting objects. My class so far looks like this:[详细]
2023-02-12 21:07 分类:问答