in reply to Factoring out common code in two methods of a class

building that format string might be clearer if moved into a simple templating engine.

Why dont you look into using Moose to ease your OOP efforts?

Also, methods dont "normally" return anything as much as they populate a slot in the object.

  • Comment on Re: Factoring out common code in two methods of a class