Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re^3: How Much Is Too Much (on one line of code)?

by Herkum (Parson)
on Jun 19, 2007 at 11:27 UTC ( #621991=note: print w/replies, xml ) Need Help??


in reply to Re^2: How Much Is Too Much (on one line of code)?
in thread How Much Is Too Much (on one line of code)?

I agree with your approach but would try to avoid using the $card->country call twice

There is basically one thing that needs to be taken into account when using a method call and that is whether or not the method is memory intensive or not.

I like clarity but the overhead savings is something to seriously consider... Thank you for the suggestion.

  • Comment on Re^3: How Much Is Too Much (on one line of code)?

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (4)
As of 2018-05-23 03:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?