From: Fosiul Alam Date: 2012-08-06T01:10:54+09:00 Subject: how to split user input into variables Hi Suppose if i do this puts "Inter Groups name" groups= gets User will pass value like this ops,admin,account now how can i (a) split those values (ops,admin,account) (b)loop through those values exmaple if value=ops do this if value = admin do this if value = account do this if you just highlight few steps , that would be fine thanks -- Posted via http://www.ruby-forum.com/.