From: Mark Thomas Date: 2008-10-17T04:34:34+09:00 Subject: Re: Ruby with Oracle forward slash error On Oct 16, 2:06 pm, Sam Sang wrote: > Ah -- of course!  Ok, that one is resolved.  More generically how do we > handle chunks of code in Ruby?  Like in this case I have a lot of sql > statements seperated by "/".  After the last "/" there might be some > empty lines, or some text which I want to ignore. Maybe something like this? statements = type.split(%r{^/}) statements.each do |s| execute(s) unless s.strip == "" end -- Mark.