PS: Just a quick heads up: I just notice there is a subtle bug in the
code I presented (which was untested anyway).  Sorry for any
inconvenience.

Kind regards

robert

-- 
remember.guy do |as, often| as.you_can - without end
http://blog.rubybestpractices.com/