From: Phrogz Date: 2007-02-25T03:55:07+09:00 Subject: Re: using step backward ? On Feb 24, 10:59 am, Josselin wrote: > I have an array myArray = ["22", "31", "56", "89", "47"] > > I would like to produce a string like : "22#31#56#89>47<" where the > last item must be : >last_item< irb(main):001:0> myArray = ["22", "31", "56", "89", "47"] => ["22", "31", "56", "89", "47"] irb(main):002:0> last = myArray.pop => "47" irb(main):003:0> myArray.join('#')+">#{last}<" => "22#31#56#89>47<"