in reply to Perl Templates
Start motivating yourself by reminding yourself that cut and paste is annoying, slow, and you forget where things should be copied from. Then, write lots of modules, and reuse them. Don't bother cutting and pasting any more, you won't have to!
I'd start by trying to sort your modules out by what they do, and then naming the modules appropriately. Perl has a ton of built in documentation on the subject, and a few monks with better memories than I can probably direct you to the "perldoc" functions on making and using modules. One such document is "perldoc perlmod", but it's not exactly the most intuitive documentation out there.
Templatizing code to accelerate copy-and-paste ability is anti-design, IMHO. It can lead to maintaince problems as well, but more importantly, it keeps one from learning how to perform certain operations without aid of documentation -- and it keeps one from thinking in the realm of new/innovative software design.
|
|---|