Search code examples
perlmoose

Is there a really good web resource on moving to Moose?


The documentation with the module itself is pretty thin, and just tends to point to MOP.


Solution

  • First you should read through the Manual if you haven't already. Then you can go on to read the Cookbook.

    I think the docs are actually pretty good these days, as long as you read the right ones. You really shouldn't bother looking at most of the docs for any class name starting with "Moose::Meta" unless you're interested in Moose's introspection features. I've tried to make this more obvious in the Moose.pm docs, which as of 0.57 tell you to read the Manual and Cookbook first.

    If you're coming from a background of doing Perl 5 OO "the old school way", I'd also suggest taking a look at the Moose::Manual::Unsweetened document, which compares Moose to equivalent Perl 5 "by hand" code.