From: "Peña, Botp" Date: 2003-01-28T17:05:31+09:00 Subject: Re: loop while sir WATANABE Hirofumi [mailto:eban@os.rim.or.jp] wrote: > while t.gets !~ /[Cc]onnect/ do end > begin end while t.gets !~ /[Cc]onnect/ > until t.gets =~ /[Cc]onnect/ do end > begin end until t.gets =~ /[Cc]onnect/ > loop do break if t.gets =~ /[Cc]onnect/ end cool :-) btw, I tried replacing "do end" with "{}" and I noticed that the replacement does not work when done at end of construct eg. while gets !~ /[Cc]onnect/ {} #does not work but {} while gets !~ /[Cc]onnect/ what gives? am I wrong on the assumption that "{-}" and "do-end" are same? > eban kind regards -botp