in reply to Polynomial Trendline / Extrapolation
Have a look at the module Algorithm::CurveFit - it'll fit your curve to whatever kind of expression you want.