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

Re: A question about the best way to use subroutines

by petral (Curate)
on Mar 27, 2001 at 08:48 UTC ( #67427=note: print w/ replies, xml ) Need Help??


in reply to A question about the best way to use subroutines

A really general rule is "one level of abstraction".  Basically, if I'm dealing with the _details_ of one step in a routine, that becomes a subroutine.  Then in the new routine, the details become the top level.

p


Comment on Re: A question about the best way to use subroutines

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://67427]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (8)
As of 2015-07-07 05:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (87 votes), past polls