From: David Vallner Date: 2007-02-20T23:31:28+09:00 Subject: Re: get rid of last element in an array On Tue, 20 Feb 2007 14:33:57 +0100, Derek Teixeira wrote: > won't the .pop method work? or does that only get rid of the last thing > entered? > Array#pop will remove the last element from the original stringified list, which might or might not be what you want - the methods in the other posts only result in a new string with the last element removed. Also, #pop will return the popped value, not the original array, which prevents you from making a single-method-chain-oneliner, a popular Rubyist sport ;P David Vallner