From: Paul Lutus Date: 2006-11-30T02:40:06+09:00 Subject: Re: Need a range, but not getting it. . . . Simon Strandgaard wrote: > On 11/29/06, Peter Bailey wrote: > [snip] >> I get: >> im123000-im123006 >> >> I want: >> im123000..im123006 > > > puts ARGV.to_s.gsub(/\-/, '..') Not if there is more than one command-line argument. In such a case, "ARGV.to_s" collapses multiple arguments into one continuous string. -- Paul Lutus http://www.arachnoid.com