Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re^2: Confusion in naming variables in subroutines

by rkrieger (Friar)
on Jan 24, 2007 at 11:51 UTC ( #596241=note: print w/replies, xml ) Need Help??


in reply to Re: Confusion in naming variables in subroutines
in thread Confusion in naming variables in subroutines

This is more a side note, I'll admit.
If you expect the number of arguments to grow, you may want to consider passing those arguments in the form of a hash and call routines with named parameters.

That way, you will not be bitten by having to remember the exact order in which you need to pass arguments. I find it's easier on others using my code.

  • Comment on Re^2: Confusion in naming variables in subroutines

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://596241]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (3)
As of 2016-12-04 06:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (61 votes). Check out past polls.