in reply to Re: Method Chaining and Accessors
in thread Method Chaining and Accessors
The client can pass silly things in the hash, and the writer of the class has to validate that all required keys are present, and extranious ones cause warnings. unless you have Class::Std do it all for you.
(and to be pedantic, you're not passing a hash at all)
Update I forgot to mention that I did actually agree with the "passing data to the constructor" idea.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Method Chaining and Accessors
by misterwhipple (Monk) on Apr 05, 2007 at 03:13 UTC |