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
|
|---|
| 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 |