P is for Practical | |
PerlMonks |
Re: function w complex argsby ferreira (Chaplain) |
on Mar 14, 2007 at 02:31 UTC ( [id://604725]=note: print w/replies, xml ) | Need Help?? |
I do believe named arguments could be considered a best practice. (I wish "they" used it more in those awful PL/SQL code that hurts my eyes and soul, but many don't even know Oracle supports it. But I am digressing.) As fmerge said, Damian Conway included it in his book. They read as: Use a hash of named arguments for any subroutine that has more than three parameters. And you can read more about the rationale of using named parameters and living better at a perl.com article by dragonchild.
In Section
Seekers of Perl Wisdom
|
|