in reply to subclass or hooks?
The first approach requires that I, your user, write a new class, test the whole class, and go forward from there. Lots of Perl knowledge required.
The second requires that I, your user, write a funciton and pass the subref to you in some constrained fashion. Less Perl knowledge required, but slightly messier design (from an imperative standpoint).
I personally prefer the second approach, because it's a better design for what you want to do. The extra time in design is well-worth the effort, IMHO.
------
We are the carpenters and bricklayers of the Information Age.
Don't go borrowing trouble. For programmers, this means Worry only about what you need to implement.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
(tye)Re: subclass or hooks?
by tye (Sage) on Nov 21, 2001 at 02:02 UTC | |
by fokat (Deacon) on Nov 21, 2001 at 03:07 UTC | |
by tilly (Archbishop) on Nov 22, 2001 at 00:02 UTC |