[prev in list] [next in list] [prev in thread] [next in thread] 

List:       ruby-talk
Subject:    Re: Frozen string problem, but I haven't frozen anything?
From:       "Robert Klemme" <bob.news () gmx ! net>
Date:       2004-02-18 8:14:59
Message-ID: c0v6qh$1chtcv$1 () ID-52924 ! news ! uni-berlin ! de
[Download RAW message or body]


"Mark Hubbart" <discord@mac.com> schrieb im Newsbeitrag
news:3AA77270-6182-11D8-B680-000502FDD5CC@mac.com...
>
> 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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic