in reply to tutorials / examples to start using Moo (or Class::Tiny, or...?)

I have several scripts which it would seem wise to turn into modules. Unfortunately, even though I have been using Perl for a long time, OO concepts still tend to feel unfamiliar to me.
Modules and OO concepts are two entirely different things. It is quite possible and easy to gather your common code into a module (as some kind of "commonly used subroutines" repository) and use that without any hint of OO.

So the answer to your last question is probably "yes".

CountZero

A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James

My blog: Imperial Deltronics
  • Comment on Re: tutorials / examples to start using Moo (or Class::Tiny, or...?)

Replies are listed 'Best First'.
Re^2: tutorials / examples to start using Moo (or Class::Tiny, or...?)
by Laurent_R (Canon) on Jul 21, 2015 at 18:54 UTC
    I definitely agree with CountZero. You can write modules without using Moose, Moo or some other OO framework. From your description of what you are trying to do, I do not see very much use of a OO framework. A simple functional module might just fit the bill. Having said that, I have nothing against OO framework, I am just not sure that this is what you need.