From: w_a_x_man Date: 2010-10-17T09:00:15+09:00 Subject: Re: What's the opposite of << On Oct 16, 5:23 pm, Paul Roche wrote: > Hi, what's the opposite the concatenate sign << ? > > For example I want to do the opposite of what the following piece of > code does........... > > player.in_squad = player.in_squad << team > > This ads a player to the team. team = %w(Tom Dick Harry) ==>["Tom", "Dick", "Harry"] team << "Bob" ==>["Tom", "Dick", "Harry", "Bob"] team.pop ==>"Bob" team ==>["Tom", "Dick", "Harry"]