"Mark Hubbart" <> schrieb im Newsbeitrag
news:3AA77270-6182-11D8-B680-...
>
> On Feb 17, 2004, at 6:14 AM, Robert Klemme wrote:
>
> > Why don't you just do
> >
> > $cvsroot_in, $cvsuser, $modulepath_in, *$cvsfiles = *ARGV
> >
> > $cvsroot.tr_s('/', '/')
> > $modulepath.tr_s('/', '/')
>
> You probably meant:
> $cvsroot = $cvsroot_in.tr_s('/', '/')
> $modulepath = $modulepath_in.tr_s('/', '/')
Yes. Thanks for correcting that.
> but how about:
> $cvsroot, $cvsuser, $modulepath, *$cvsfiles = *ARGV.map{|a|a.dup}
>
> this unfreezes everything automagically.
As always there are tons of ways to do things with Ruby. Which is good.
Regards
robert