Questions tagged [moosex-types]

The tag has no usage guidance.

moosex-types
Filter by
Sorted by
Tagged with
2 votes
2 answers
125 views

Perl Moose Dynamic assign the value to attribute suggestion

I am trying to accomplish the following. I have a Moose style modules A and B A need metadata as mandatory params B wants to create the object of A multiple time hence wanted to set as an attribute ...
Smarhacker's user avatar
2 votes
0 answers
162 views

Parameterizing a Moose subtype by another subtype via coercion

I'm unsuccessfully trying to create a type _Varchar which would use another type _VarcharRange as a parameter. _VarcharRange, in turn, can be coerced from one of the Moose base types. Let me start ...
Bob's user avatar
  • 137
-1 votes
2 answers
651 views

Can't call method "model" on an undefined value at

I have been building catalyst apps of a number of years now. This is the first time I am getting an error trying to open a view. When I call the view (there is only one view), I get the following ...
Phil's user avatar
  • 1
2 votes
1 answer
244 views

Perl MooseX::Method::Signatures inject custom code to all methods

I am trying to use MooseX::Method::Signatures and MooseX::Declare in an application, my need is to inject custom code at the beginning of each method at compile time not at run time: instead of this:...
daliaessam's user avatar
  • 1,646
1 vote
1 answer
755 views

Validation Failing for Valid Hashref

I'm deploying my software (first time in a new environment) and hitting a wall almost immediately. I have a value that is failing its HashRef validation, but every test I can think of makes it seem ...
Ryan's user avatar
  • 672
5 votes
2 answers
531 views

Using blessed CodeRefs with Moose type constraints

We use Moose classes that serialize iterators into various output formats. We describe the iterator as an attribute: has iterator => ( is => 'ro', isa => 'CodeRef', required =&...
angelixd's user avatar
  • 300
4 votes
1 answer
556 views

Newbie Moose, MooseX::Storage, and MooseX::Log4Perl problem: Can't store object

I'm writing my first moose base program. The program creates a "state" object that is a composition of several other moose objects. At the end of the program, I wish to save the "state" object to a ...
Todd's user avatar
  • 716
3 votes
1 answer
182 views

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 ...
TJ Thompson's user avatar
3 votes
1 answer
523 views

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 ([...
TJ Thompson's user avatar
3 votes
1 answer
164 views

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 ...
Evan Carroll's user avatar