in reply to Making do with a badly designed process
Backing up a step, you will probably find that there is a statistics module on CPAN (hell, maybe even core) that both does the regression for you and returns it in an easy to use form.
Just food for thought. It'll probably take you the same amount of time to find/grab/implement a module solution as it would to implement your solution, but with a CPAN module you'll have tighter, easy to build upon code.
|
|---|