in reply to Summing numbers in a file

In addition to what kcott wrote, there are Math::Expression & Math::Symbolic.

# No need perl. # For numbers all by their lonesome on a line. awk 'BEGIN { sum = 0 } END { print sum } { sum += $1 }' in > out