Contents 
 Index 
 "TPT User's Guide" 
 < Previous 
 Next > 

Common Routines

The problem of code re-use and re-purposing became an issue even while developing the first couple of Perl programs, and only became worse the more programs were copied and modified for other applications.

On the one hand, I had to determine what was unique to one application and what was truly general and valid as a shared routine for several applications.

On the other hand, I had new data structures which simplifies code further. Code needed to handle a data structure could be re-used to handle other similarly structured data structures.

As a result, many of the routines were generalized to the point where they could re-used. If two or more programs needed a routine, it was placed into the globe.pm file. Not all of the routines are used in all Perl programs.

WARNING! By adding common routines to the globe.pm file, it solidifies it as a code file. Be careful in making changes to definitions, otherwise other Perl programs wont work.



 "TPT User's Guide" 
 < Previous 
 Next > 


Open-Source tools compliments of Voyant Technologies, Inc. and Glenn C. Maxey.
01/13/2003

TP Tools v2-00-0a

# tpt-hug-02