On Sat, 9 Feb 2002, Tobias Reif wrote: [...] > http://www.itasoftware.com/careers/programmers.php Not looked at this site yet... > > find.rb > ----------8<---------- > > > @file_name = ARGV[0] > > @debug == false > > if ARGV[1] == 'd' > @debug = true > end > > @word_list = open(@file_name, 'r') do |file| > file.readlines file.readlines.collect! {!x| x.chomp} # may be quicker?? > end > > @word_list = @word_list.map do |word| > word.chomp > end [...] I suspect that if you store the split(//) strings: @split_words = @words.split(//) then you can sae breaking the strings into chars all the time. > > Have fun, > Tobi > > -- > > * peace&love. > * http://www.pinkjuice.com/ > >