It depends on the problem. This is really only something you can answer with experience, but one good guideline is that using objects is useful when you have a collection of logically-contained behavior. If you can point at an entity in the solution and say "Here is an individual thing that does several related things", you might have a good candidate for an object.
In reply to Re^5: Subroutine and object
by chromatic
in thread Subroutine and object
by perlsyntax
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |