I never knew linear regression before, I do have some experience with quantitative finance though its often hard to find data sources apart from html parsing yahoo finance archives. I did not know i was going to get such a fast response, if other people can contribute i would be very grateful to hear their advice or maybe some handy perl module recommendations as well but this is already such a helpful answer.
I thank you very much.