When a lot ( > 2 ) of your subroutines have the exact same code, why type it more than once? :)
Other than that, some things generate lots and lots of accessors. Writing some code to automatically generate them all means less typing and a single point of maintenance when you decide you need to change them all.
In reply to Re^2: Modules for autogenerating accessor/mutator methods
by brian_d_foy
in thread Modules for autogenerating accessor/mutator methods
by srdst13
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |