in reply to Re: passing subroutine args as a hash: why not?
in thread passing subroutine args as a hash: why not?
For your typical sub, there is a great problem with that many params. However, I can see how a perfectly good object would have a constructor with quite a lot of args. Perhaps not 61, but they often have a lot more than a typical sub (just look at all the options in the HTML::Template constructor).
----
I wanted to explore how Perl's closures can be manipulated, and ended up creating an object system by accident.
-- Schemer
Note: All code is untested, unless otherwise stated
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: passing subroutine args as a hash: why not?
by djantzen (Priest) on Jun 05, 2003 at 18:51 UTC | |
by hardburn (Abbot) on Jun 06, 2003 at 13:41 UTC | |
by djantzen (Priest) on Jun 06, 2003 at 15:33 UTC |