in reply to Re^2: Combining calls to a subroutine issue.
in thread Combining calls to a subroutine issue.
Get down to first principles. Break things up into individual, modular components that do specific, simple parts of the task. Plug these components into subroutine calls in loops as needed, and make the code look like a natural-language description of the task. (I gather that English is not your first language, whereas it tends to be the first natural language for perl; this might be a problem, but sticking to simple "command-style" statements ("do this, then do that, then...") will serve you well enough.
Separate the creation/management of data structure from the presentation of data, and set up a main-level controller that uses those two sets of functions ("model vs. view vs. control"). Based on what you've shown so far, I don't think there's anything else I can offer.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Combining calls to a subroutine issue.
by Anonymous Monk on Apr 15, 2010 at 15:50 UTC | |
by graff (Chancellor) on Apr 16, 2010 at 17:31 UTC |