Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
What can I do to reduce the repetition of writing those 2 lines for every method? Someone suggested that I use a module to handle the attributes of the methods, but I am hoping to do this without the help of a module.
Also, at the end of certain methods (about a dozen or so), I print some HTML. It is always the same HTML. I was hoping the I could use DESTROY as a means of tacking on that HTML to the method calls that need them. Would that be a good thing to do? Thanks Monks.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Controlling the start and endings of method calls
by rhesa (Vicar) on Feb 02, 2006 at 00:43 UTC | |
|
Re: Controlling the start and endings of method calls
by davido (Cardinal) on Feb 02, 2006 at 01:41 UTC | |
by blazar (Canon) on Feb 02, 2006 at 11:06 UTC | |
by davido (Cardinal) on Feb 02, 2006 at 16:34 UTC | |
by blazar (Canon) on Feb 02, 2006 at 18:30 UTC |