|The stupid question is the question not asked|
Data flow vs logic flow?by tenya (Beadle)
|on Jun 02, 2001 at 06:51 UTC||Need Help??|
tenya has asked for the
wisdom of the Perl Monks concerning the following question:
Should my data follow the logic between modules, or should it take shortcuts?
I have three modules:
Default values in a BEGIN block that can be modified by the user.
Getter subs that can export these variables to other modules.
Most code is here.
Has code called by MainModule.
Uses variables from UserInput that are never used in MainModule.
Should ModuleThree get the variables directly from UserInput when it needs them,
or should MainModule get them from UserInput and pass them to ModuleThree
when it calls the ModuleThree code?