Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: function w complex args

by ferreira (Chaplain)
on Mar 14, 2007 at 02:31 UTC ( [id://604725]=note: print w/replies, xml ) Need Help??


in reply to function w complex args

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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://604725]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (6)
As of 2024-03-28 22:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found