moose
Too many DB connection with mod_perl2 moose application
I have a mod_perl2 based web app that requires a connection to a mysql database. I have implemented the SQL connection specifics in a moose role.[详细]
2023-01-03 17:29 分类:问答Moose read-only Attribute Traits and how to set them?
How do I set a Moose read only attribute trait? package AttrTrait; use Moose::Role; has \'ext\' => ( isa => \'Str\', is => \'ro\' );[详细]
2023-01-03 16:40 分类:问答Singleton Roles in Moose
I am attempting to write a singleton role using Perl and Moose.I understand a MooseX::Singleton module is available but there is always resistance when requiring another CPAN module for our project.Af[详细]
2023-01-03 16:37 分类:问答Perl OO frameworks and program design - Moose and Conway's inside-out objects (Class::Std)
This is more of a use-case type of question... but also generic enough to be more broadly applicable:[详细]
2023-01-03 11:15 分类:问答Perl Moose::Util::TypeConstraints bug ? what is this error about the name has invalid chars?
That has been hours i am tracking a Moose::Util::TypeConstraints exceptions, i don\'t understand where it gets to check a type and tells me that the name is incorrect. I tracked the error to a reduced[详细]
2023-01-03 10:53 分类:问答How can I use Moose with Test::Class?
I\'m currently refactoring a test suite built up by a colleague and would like to use Test::Class[::Most] while doing so. As I started I figured out I could really use a couple of Moose roles to decou[详细]
2022-12-30 13:12 分类:问答Moose::Error::Croak error reporting not from perspective of caller
I just recently started out on Moose and its a great OO framework not only to use but also to learn new OO concepts. One of the things I wanted to do was to do error reporting from perspective of call[详细]
2022-12-29 01:46 分类:问答How do I represent a mixin/role/trait with UML properly?
Me and several other developers are currently cleaning up our legacy code base, mostly separating visual and data layers. To help developers not involved in this refactoring understand the model, I\'d[详细]
2022-12-27 23:56 分类:问答Moose: Loading object from file in the BUILD method
I have to read a file in the BUILD method and I want to use the load method of the MooseX::Stor开发者_如何学运维age package.[详细]
2022-12-27 07:26 分类:问答Is the performance hit with using MooseX::Declare mainly encountered during startup?
Is the performance hit with using MooseX::Declare mainly encountered whi开发者_如何学编程le it does its initial magic (i.e. \"translating\" the definition into standard Perl syntax)? i.e. once the com[详细]
2022-12-25 05:36 分类:问答