Rimantas Liubertas wrote:
>> >
>> > 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

Thanks. But, I'm trying to design this script for users to put in 
arguments. (It's  an image modification script that ftps named files 
from one server to another.) So, a user might type in: test1.rb 
im123456-im123459 im123462 im123466

and, I'd want to capture each of those entries, or series of entries. 
So, eventually, yes, I want to get to what you typed in above, but, I 
have to decipher the ARGV stuff first.

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