-
Format your code in a consistent manner (or use perltidy to make it so). Then, use diff to identify where code might differ in blocks that appear to be repeated.
-
The subroutine is the basic unit of code re-use in Perl.
-
Place code shared between two subroutines in an engine, then write a wrapper around the engine.
-
Engines can have subengines.
-
The test of an interface's user-friendliness is whether it guides the user to pass the correct number and types of arguments to a subroutine.
Slide:
48
conclude1
|
© 2003 James E. Keenan |