in reply to Preferred technique for named subroutine parameters?
This seems to be a hot topic today!
Both methods are widely used, so you are on your own — sometimes one way makes more sense than the other; some people have preferences.
I like flat lists — less parentheses, and you can use non-string keys if you need to (or: someone who extends your module can add non-string stuff without breaking all pre-existing code).
Or you could support both.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Preferred technique for named subroutine parameters?
by AnomalousMonk (Archbishop) on May 22, 2009 at 20:34 UTC | |
by akho (Hermit) on May 22, 2009 at 20:43 UTC | |
by AnomalousMonk (Archbishop) on May 22, 2009 at 21:06 UTC | |
by akho (Hermit) on May 22, 2009 at 21:09 UTC | |
by AnomalousMonk (Archbishop) on May 22, 2009 at 21:41 UTC | |
by LanX (Saint) on May 22, 2009 at 22:06 UTC | |
by AnomalousMonk (Archbishop) on May 22, 2009 at 22:24 UTC | |
|
In Section
Seekers of Perl Wisdom