Peter Bailey wrote:

/ ...

> 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.

The OP's example is wrong anyway -- it doesn't apply to the case I
described.

Just scan the ARGV array as I have said:

ARGV.each do |arg|
  arg.gsub!(%r{-},"..")
  # do something here
end


-- 
Paul Lutus
http://www.arachnoid.com