rewriting++
100 different scripts sounds like a nightmare (especially if you didn't write them), but I suspect that you're likely to find a lot of overlap between various scripts.
Here's a possible sequence of events for the least painless port:
- As Beatnik suggests, you want to try to understand what the scripts are doing first
- Now try to understand what the tools the scripts need to accomplish their respective tasks are
- Now try to highlight areas for re-use -- e.g. database access wrappers for DBI, printing feedback to the user (either HTML, text, or graphical)
- These reusable elements are likely to be good candidates for either modules or objects, depending on what they do
- Remember that objects are normally wrappers to data,
- while modules are ways of reusing useful functions
- This is very loose, but what I'm getting at is that in a scripting-oriented language, not everything has to be, nor should be, an object
- Comment, comment, comment -- how many times have you come back to your own code only to say: "What the hell was I trying to do here?"
HTH