> >
> > Your problem was that, although gsub! (with the !) normally modifies the
> > receiver, 'files' wasn't the receiver (to_s was), so you weren't actually
> > changing 'files'.
>
> Not correct. Try it.

>> files=["im123000-im123006"]
=> ["im123000-im123006"]
>> files.to_s.gsub!(/-/,'..')
=> "im123000..im123006"
>> files
=> ["im123000-im123006"]


Regards,
Rimantas
--
http://rimantas.com/