Beefy Boxes and Bandwidth Generously Provided by pair Networks Russ
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: To sub or not to sub, that is the question?

by mrmick (Curate)
on Jun 25, 2001 at 13:21 UTC ( [id://91263]=note: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


in reply to To sub or not to sub, that is the question?

I always try to use the following:
  • If there is a single distinct operation being done, make it a sub.
  • If something is being repeated, make it a sub.
  • If making a decision within the program, make it a sub.
In other words, if in doubt, make it a sub. It will make your code easier to maintain.

Mick
  • Comment on Re: To sub or not to sub, that is the question?

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://91263]
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.