Charles K. Clarkson wrote:
Daniel Kasak <mailto:[EMAIL PROTECTED]> wrote:
: : I have a large script ( 6000 lines ) that I'd like to break into
: logical units. Is there a way I can tell perl to 'append' a list
: of files into 1 script so that I can call subs from any of the
: files and have them treated as if they were all from the same
: script ( ie all my variables will be visible )?



If I understand you correctly, yes, but what would be the point? 6000 lines distributed over several files which, when called, are combined back into a 6000 line script doesn't really do anything. The result is the same: a 6000 line script.
The point is simple: upkeep. If you have a 6000 line script, it will be harder to find the specific part you want to fix, it will be much easier with separate, intelligently organized files than a single file.
This is especially helpful with multiple developers.

Better to use modules or objects. You might start by reading the perl docs: 'perlmod' and 'perlmodstyle' are good places to start.

HTH,

Charles K. Clarkson

-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>




Reply via email to