Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
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?
[oiskuu]: Michael Jackson died? Again?!
[LanX]: 7 awkward minutes

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (4)
As of 2017-08-20 18:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Who is your favorite scientist and why?



























    Results (317 votes). Check out past polls.

    Notices?