bhupesh_walde has asked for the wisdom of the Perl Monks concerning the following question:

Hi Monks,

I know basic concepts of the PERL.Now I started learning the Catalyst Perl Framework by using the help of the internet. Did i should know the moose concepts to learn the Catalyst Framework ? Please refer some links with examples. Thanks To All

Replies are listed 'Best First'.
Re: Perl Framework Catalyst
by Your Mother (Archbishop) on Oct 20, 2013 at 19:26 UTC

    It really depends on what you want to do. Knowing Moose is unnecessary for most, to all, basic stuff. Catalyst is now Moose based but wasn't for a few years and the general code layout did not change, only the flexibility and internals of things.

    Knowing a little Moose, creating attributes and using around|before|after hooks gets you 90%+ of what the average end-user of a framework will want for customization or "power-tools." Becoming more of a Moose expert in roles and such is good to have but unlikely to ever come up unless you're creating custom meta-controllers or models or something. It's also a pretty big pill to swallow in addition to learning Catalyst and whatever models and templating you're adopting.

    If you have specific points you're stuck on or worried about, you should come back with details. It's a pretty wide and deep problem space for general advice.

Re: Perl Framework Catalyst
by zwon (Abbot) on Oct 20, 2013 at 14:59 UTC
    Yes you should learn Moose in order to better understand how Catalyst works. Also Moose is a modern way of doing OOP in Perl, so you should learn it in any case. Moose comes with quite good documentation, so I recommend you to start with it: Moose::Manual
Re: Perl Framework Catalyst
by Khen1950fx (Canon) on Oct 20, 2013 at 19:23 UTC
    FYI, it isn't necessary, but it can't hurt either. You should probably start here. Also, the correct spelling for Perl is with the first letter capitalized. The other three are lower-cased. The interpreter is all lower-case as in perl.