Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
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 the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (14)
As of 2014-08-29 13:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (280 votes), past polls