in reply to OO + command line tools
First, of course, you need to decide what functions will become library "methods" and take the time to design your classes. You don't even need to make full blown OO classes, just enough to be able to 'use' them in your client scripts.
Then, read perlnewmod and learn how to make CPAN modules (also take a gander at Module::Build). Once you have a tar ball, you can install it on any box that you need (root access is best). You can even make your own local "in-house" CPAN mirror site that only contains your modules, if you like. Then you just configure the CPAN.pm cpan shell command to fetch from it. Now updating and installing new modules is a breeze.One thing to consider however ... maybe all of these 'utility functions' that you want to incorporate already exist in one CPAN module or another. Since i really started using the CPAN, i find that most of my code is small scripts that just glue existing modules together.
jeffa
L-LL-L--L-LL-L--L-LL-L-- -R--R-RR-R--R-RR-R--R-RR B--B--B--B--B--B--B--B-- H---H---H---H---H---H--- (the triplet paradiddle with high-hat)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: OO + command line tools
by bugsbunny (Scribe) on Oct 10, 2003 at 20:46 UTC | |
by jeffa (Bishop) on Oct 10, 2003 at 21:33 UTC |