From: pere.noel@... (=?ISO-8859-1?Q?Une_b=E9vue?=) Date: 2006-10-03T18:20:10+09:00 Subject: Re: shell, ruby and regexp Robert Klemme wrote: > > ARGV.map! do |arg| > case arg > when %r{\A/.*/[io]*\z} > eval arg > when %r{[+-]?\d+} > arg.to_i > else > arg > end > end > > > may be here i've missed something too... > > I guess you were mindset that there needs to be some mechanism to > automatically convert process arguments for you. not exactly because i was doing a : arg = Regex.new(arg)... -- une b�vue