in reply to Re^2: Moose coerce
in thread Moose coerce

Your module works fine:

# ... all same above ... package main; use Data::Dumper; my $t = test->new; $t->mytype('foo=bar,foo2=bar2'); warn Dumper $t->mytype; # Don't call $t->mtype('foo') # Use correct method name!! warn $t->get_option('foo');

Good Day,
    Dean

Replies are listed 'Best First'.
Re^4: Moose coerce
by Anonymous Monk on Oct 21, 2010 at 13:08 UTC
    Ah, doh! Thanks - much appreciated!