From: "Peña, Botp" Date: 2007-08-03T16:58:14+09:00 Subject: Re: Determining the common prefix for several strings On Behalf Of Todd Burch: # Holy Cow! You guys are geniuses! Y'all are using these # methods like. I've never seen or even thought of using them before. don’t count me pls. i'm not holy nor genius, (possibly a cow :) but just a nuby learning ruby fr the marvelous ruby community (thanks to matz, nobu, guydecoux, mauricio, dblack, ...ml-list.size ). ff is another example (of my nubiness). it shows niftiness of bang methods, chains, and the underutilized all?, CC:\family\ruby>cat test.rb list = %w(itemone itemtwo item222 item0033 item11 itexthis itemthisandthat itemt hose) min = list.sort!{|a,b| a.size <=> b.size}.first break if list.all?{|a| a =~ /^#{min}/} while min.chop! puts min C:\family\ruby>ruby test.rb ite C:\family\ruby> i luv my family. i luv ruby :) kind regards -botp