Li Chen wrote: > Hi all, > > I have an array of [1,2,''] I want change it to [1,2]. I check the > document about Array but I cant't find a way to remove the empty > element. Any comments? http://ruby-doc.org/core/classes/Array.html#M000405 You should really get hold of your copy of the Pickaxe. Regards robert