Side Effects of println?

Yes that is true.

ao = parseseries("ao.txt")
println(cor(ao, pc))

prints -0.16844440419944623 which is obviously using bad values.

ao = parseseries("ao.txt")
println(ao)
println(cor(ao, pc))

prints the array with -0.0395386 in the last spot and prints 0.6317015985345612

ao = parseseries("ao.txt")
println(cor(ao, pc))
println(ao)

prints 0.6317015985345612 and then array with -0.0395386 in the last spot. I can take it further and plot the data before printing out the array, and it still fixes the data.