On Sat, May 19, 2007 at 06:08:02AM +0900, Eu Fe wrote:
> Do you understand why the last include gives false ?? It seems that the
> limit is 24 characters, is it a bug ?
> 
> irb(main):001:0>
> s="asdfasdfasdfasdfasdfppppppppppppppppppppppppasdfasdf"
> => "asdfasdfasdfasdfasdfppppppppppppppppppppppppasdfasdf"
> irb(main):002:0> s1="pppppppppppppppppppppppp"
> => "pppppppppppppppppppppppp"
> irb(main):003:0> s.include?(s1)
> => true
> irb(main):004:0> s1="ppppppppppppppppppppppppasdf"
> => "ppppppppppppppppppppppppasdf"
> irb(main):005:0> s.include?(s1)
> => false

I get 'true' in both cases. I am using the package supplied with Ubuntu
Linux 6.06, which gives RUBY_VERSION as 1.8.4

What platform and ruby version are you using?