I have a script that extracts large amounts of data on which it often needs to perform calculations. For example, it might extract the ages of 100 people and then output an average age.
I don't know much about object-oriented programming, but it looked like it might be a good way to store and manipulate data within the script; so, I could extract the ages, making each person an object, and then do the calculation, and then output the average.
Is this feasible/reasonable? The other option is creating a database and doing the calculations within, but why add 100 values to a database when all I really need is the average? Also, it might give me an opportunity to learn about object-oriented Perl.
If anyone has any advice I would be much indebted.