From: Nathaniel Talbott Date: 2004-02-26T04:05:36+09:00 Subject: Re: print with no arguments? On Feb 25, 2004, at 13:44, Oliver Cromm wrote: > I feel that the Ruby interpreter is poking fun at me with this error: > > findcols.rb:84:in `print': wrong number of arguments(1 for 0) > (ArgumentError) > > The script does indeed run without errors as soon as I remove the > argument from print, but what sense should that make? The culprit line > with a little context: > > (0..@peak).each do |n| > (0..@cumul.size-1).each {|i| print "*" if @cumul[i] > n} > puts > end Have you perhaps overridden print somewhere in your code? Nathaniel <:((><