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 ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://596241]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (5)
As of 2024-04-26 08:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found