Robert Klemme wrote in post #1077298:


> In case of type, please have a look:
>
> irb(main):001:0> st = 'ab'
> => "ab"
> irb(main):002:0> ch = 'c'
> => "c"
> irb(main):003:0> 3.times {|i| puts st.dup.insert(i, ch)}
> cab
> acb
> abc
> => 3
>
> Kind regards
>
> robert

coooool,..

it works, st.dup was what i was searching for

Thank you:-)

-- 
Posted via http://www.ruby-forum.com/.