in reply to adding a column of integers

Whats wrong with your solution?
Here is my one:
perl -ple '$_=$s+=$_'
Boris