Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
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?
[marto]: red meat
[Discipulus]: out of world cup with player as..

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (9)
As of 2017-11-22 12:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:













    Results (319 votes). Check out past polls.

    Notices?