Re: handling of regexp objects that aren't referenced by variables, arrays, tables or objects
- From: Gary Wright <gwtmp01@xxxxxxx>
- Date: Sun, 27 Sep 2009 18:59:11 -0500
On Sep 27, 2009, at 4:25 PM, ThomasW wrote:
Thanks for that tip. I wasn't aware that this also works with regexp
matches. It's great that it does! By the way, is there anything
substantially different from an elsif chain, except for being slightly
less typing?
The semantics are the same in this case but I think the
case statement highlights the fact that you are doing a
sequence of matches against a single object, whereas the
standard if/then/else is a more general construct.
Gary Wright
.
- References:
- handling of regexp objects that aren't referenced by variables, arrays, tables or objects
- From: ThomasW
- Re: handling of regexp objects that aren't referenced by variables, arrays, tables or objects
- From: Gary Wright
- Re: handling of regexp objects that aren't referenced by variables, arrays, tables or objects
- From: ThomasW
- handling of regexp objects that aren't referenced by variables, arrays, tables or objects
- Prev by Date: Re: Counting words for visual details
- Next by Date: Re: handling of regexp objects that aren't referenced by variables, arrays, tables or objects
- Previous by thread: Re: handling of regexp objects that aren't referenced by variables, arrays, tables or objects
- Next by thread: calling 'C' code from Ruby
- Index(es):