in reply to Moose problem.

To initialise an object, pass the attribute name to the constructor, not a method name:
my $s = Stuff->new({options => [ qw/one two three/ ] });

You could have used Data::Dumper, it would have shown you $s has no options populated.

لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ

Replies are listed 'Best First'.
Re^2: Moose problem.
by Anonymous Monk on Dec 17, 2014 at 12:06 UTC

    "To initialise an object, pass the attribute name to the constructor, not a method name:"

    Thanks. (Shame about the lack of error handling!)

      Shame about the lack of error handling!
      MooseX::StrictConstructor
      لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ