Peter Bailey wrote:

> Hello,
> I'm going nuts with the simplest stuff here. I just want to take in
> array data and make it into a range.
> 
> Here's my test script, called test1.rb:
>    files = [ARGV]

ARGV is an array, not a scalar. you want:

files = ARGV[0]

Or maybe you want to go through the ARGV values one by one.

>    files.to_s.gsub!(/\-/, "..")
>    puts files

This code works if you provide a scalar.

Please explain. Will there be more than one value on the command line?

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