in reply to Choosing between AUTOLOAD vs Delegation

Later, through some other forum, I identified about the class Class::Delegator. If I use Class::Delegator then we need to write the hash for each and every sub which will be deligating. I have 150+ such functions which all will be deligated to a single attribute.

Please help me to identify whether I should stick with AUTOLOAD or should I move to Class::Delegator class.

If your AUTOLOAD solution is working for you, and the Class:Delegator seems like too much work for you, I don't think it makes any sense *now* to change.

If later in the project it turns out you may have to reevaluate this position, you can always do the work then.

  • Comment on Re: Choosing between AUTOLOAD vs Delegation