From: Dave Thomas Date: 2007-12-21T01:58:11+09:00 Subject: Re: named captures assigning to local variables On Dec 20, 2007, at 10:48 AM, David Flanagan wrote: > How about making the return value an array of the captured strings, > or nil if there was no match? > Also, I suppose it should be a compile error if the regexp on the > left hand side does not contain any named captures. Otherwise, = > becomes a variant of =~. I rather like the consistency we now have, that the value of an assignment is always its RHS. Dave