|
|
|
Your skill will accomplish what the force of many cannot |
|
| PerlMonks |
Re: Style & subroutine organizationby idnopheq (Chaplain) |
| on Aug 29, 2001 at 14:38 UTC ( [id://108767]=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.
Unless I'm reading it wrong, options one and two are not equivallent. The first calls 1 then 2 then 3 independent of each other. The second calls 1 which calls 2 which calls 3, 1 dependent on 2 dependent on 3 ( which is missing ).
Part of why subs exist is to ease repetitive tasks w/i code. One applies appropriate style based on need. There will be some instances where option one is best, and others where option two rules. If you can post a specific example, maybe we can provide a better answer to your somewhat vague question.
HTH
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||