> 
> I think what you want is more along these lines:
> 
> # Don't call it "table_exists" because that implies the value is a
> # boolean, when in fact it will be an array
> table_array = db.execute("select name from sqlite_master where
> type='table' and tbl_name='derek'")
> 
> if table_array.size > 0
>    p "yes", table_array
> end
> 
> if not table_array.empty?
>     p "yes"
> else
>     p "no"
> end
> 
> Ben


Amen Ben!  I understand completely. Thank you!
Im still new to Ruby, coming from Perl.
-- 
Posted via http://www.ruby-forum.com/.