in reply to Comments on my code, advices how to improve it.

Rewrite your class using inside-out objects. See here, and here, and Chapter 15 of Perl Best Practices by Damian Conway.

For a practical example of a module that uses inside-out objects, see Math::Random::MT::Auto.


Remember: There's always one more bug.
  • Comment on Re: Comments on my code, advices how to improve it.