From: James Edward Gray II Date: 2005-08-29T01:19:17+09:00 Subject: Re: [SOLUTION] Word Chains (#44) On Aug 28, 2005, at 11:03 AM, Gavin Kistner wrote: > On Aug 28, 2005, at 7:31 AM, James Edward Gray II wrote: > >> warn "Loading dictionary..." if $DEBUG >> WordChain.load_words(dictionary_file, start) >> warn "Building chain..." if $DEBUG >> puts WordChain.new(start, finish) >> > > What's the benefit to using #warn rather than #puts here? stderr > versus stdout? I can redirect them separately. For example, I can throw the chain into a file, but still see the progress messages: $ ruby -d word_chain.rb lead gold > chain.txt Loading dictionary... Building chain... $ cat chain.txt lead load goad gold Hope that makes sense. James Edward Gray II