Fix for JRUBY-2882. Handle error messages related to constructors better
[jruby.git] / bench / shootout / sumcol.jruby
blobb1049ab932bd87c032f3a4c895c26805402092b8
1 #!/usr/bin/ruby
2 # -*- mode: ruby -*-
3 # $Id: sumcol.jruby,v 1.1 2007-06-10 22:33:44 igouy-guest Exp $
4 # http://www.bagley.org/~doug/shootout/
5 # from: Mathieu Bouchard, revised by Dave Anderson
7 count = 0
8 l=""
9 STDIN.each{ |l|
10 count += l.to_i
12 puts count