moose
Moose basics: open file and parse
I am new to Moose and OOP and would like some guidance on solving a very basic file handling and parsing requirement usi开发者_JAVA技巧ng Moose. I am familiar with Perl, and would like to start using[详细]
2023-02-11 20:32 分类:问答In Perl/Moose, can I have two attributes with mutually-dependent defaults?
Can I do this in Moose? package SomeClass; use Moose; has start => ( isa => \'Int\', is => \'ro\',[详细]
2023-02-10 05:34 分类:问答Moose module with errors, need help finding the cause
I\'m trying to refactor my tests for Dist::Zilla::Plugin::Catalyst to be more DRY,trying to use Moose for the task, but I\'m running into issues, and for the life of me I can\'t figure out what they a[详细]
2023-02-09 22:41 分类:问答Perl class attribute composition?
Suppose I have multiple roles, each one defining a set of items: package A; use Moose::Role; sub items () { qw/apple orange/ }[详细]
2023-02-08 04:01 分类:问答What is the best option for building a plugin system for a Moose application?
I want to write a app that can be extended via plugins, using Perl and Moose. I know there are a few Moose modules for writing plugins and I know there are othe开发者_如何学Pythonr ways.[详细]
2023-02-07 14:09 分类:问答MooseX::Types declaration issue, tight test case :)
So after an embarrassing amount of time debugging, I\'ve finally stripped this issue down to a simple test case.I would humbly request some help understanding why it\'s failing. :)Here is the error me[详细]
2023-02-04 13:44 分类:问答how to update meta information of inherited moose classes?
I dont know if i asked that question the right way but i will try to explain. I have a base class MyClass.pm:[详细]
2023-02-03 16:47 分类:问答Perl Moose TypeDecorator error. How do I debug?
I\'ve recently run into a problem I\'d greatly appreciate any insight into.I posted a similar question prior to Christmas over at PerlMonks with some feedback to switch away from MooseX::Declare ([htt[详细]
2023-02-03 12:10 分类:问答Integrating XS code into Moose Class definition files
I have written a XS based Perl module which provides access to functions in a C Library - lets call it MyLib_XS for now. I want开发者_C百科 to move ahead from here by using these functions for definin[详细]
2023-02-02 03:13 分类:问答MooseX::Types coercions and $self
Is there anyway to get $self into a MooseX::Types coercion? I have other data in the object that I want to use to seed my coercion from a String to an Object. Alternatively, is there anything like C开[详细]
2023-01-31 07:31 分类:问答
加载中,请稍侯......