adding values from a file in perl?

reinstein

New member
here is an example text file;

test goat 894
test cat 239
test rug 931
pet frog 352

how can i add up the values in the third column and display the total?
 
Back
Top