Octavian Rasnita schrieb:
Hi,
[...]
package TestMod;
use Moose;
has foo = (is = 'ro', isa = 'Int', default = 123);
__PACKAGE__-meta-make_immutable;
package main;
use strict;
[...]
#This doesn't work because foo is undefined:
my $t = TestMod-new(foo = undef);
print $t-foo;
Hello,
I'm pondering what way to use to serialize my Moose classes to JSON.
I've have been looking to MooseX::Storage but it seems it cannot handle
more than basic attribute types. Just the very first class I tried:
Cannot handle type constraint (MooseX::Types::URI::Uri)
There seems to be a
Hi,
2011/2/15 Jiří Pavlovský j...@getnet.cz:
I'm pondering what way to use to serialize my Moose classes to JSON. I've
have been looking to MooseX::Storage but it seems it cannot handle more than
basic attribute types. Just the very first class I tried: Cannot handle
type constraint
On Feb 15, 2011, at 5:08 AM, Jiří Pavlovský wrote:
Hello,
I'm pondering what way to use to serialize my Moose classes to JSON. I've
have been looking to MooseX::Storage but it seems it cannot handle more than
basic attribute types. Just the very first class I tried: Cannot handle type