Perl: the Markov chain saw | |
PerlMonks |
Re: Preferred technique for named subroutine parameters?by akho (Hermit) |
on May 22, 2009 at 19:12 UTC ( [id://765730]=note: print w/replies, xml ) | Need Help?? |
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.
In Section
Seekers of Perl Wisdom
|
|