"Sean Chittenden" <sean / chittenden.org> wrote .... > I have a class that will have many objects and each object has a > rather expensive regexp that I don't want to recompile every instance. > I was hoping to do something similar to: > > if @@httpd_combined_entry_re.nil? > @@httpd_combined_entry_re = Regexp.new('some regexp string') > end I am guessing you want if defined?(@@httpd_combined_entry_re) ... /Christoph