From: ts Date: 2003-09-12T01:58:26+09:00 Subject: Re: What *are* variables? Which are nil now? >>>>> "H" == Hugh Sasse Staff Elec Eng writes: H> The only remaining aspect about this is why the traceback kept H> flagging up the error as being in each rather than in the compact! #compact! return nil if it don't modify the receiver : this is #compact! which return nil. With : @dirs += entries.collect{|f| stuff_here(f)}.compact! ruby will do @dirs += nil if #compact! don't modify the result of `entries.collect{...}' Guy Decoux