On Sat, Oct 15, 2005 at 04:43:05AM +0900, Charles E. Thornton wrote:
> v1 = "foo".clear     #==>  undefined method `clear' for "foo" :String
> 
> "clear" only works for HASH and ARRAY (oh yeah,  SET and QUEUE too)?

$ ~/ruby1.9/bin/ruby -ve "p 'foo'.clear"
ruby 1.9.0 (2005-09-13) [i686-linux]
""

Try
  a = ("a" * 100)[0,100]

-- 
Mauricio Fernandez