On Wed, 25 Feb 2004, 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

perhaps you have another 'def print...' in scope somewhere which does NOT take
an argument?  are you sure that your entire source file (or something you've
required) has not defined a print?

-a
-- 
===============================================================================
| EMAIL   :: Ara [dot] T [dot] Howard [at] noaa [dot] gov
| PHONE   :: 303.497.6469
| ADDRESS :: E/GC2 325 Broadway, Boulder, CO 80305-3328
| URL     :: http://www.ngdc.noaa.gov/stp/
| TRY     :: for l in ruby perl;do $l -e "print \"\x3a\x2d\x29\x0a\"";done 
===============================================================================