From: Simon Cozens Date: 2002-10-22T18:36:29+09:00 Subject: Re: Sort::Versions (was Re: Perl multiple match RE in Ruby?) michael libby writes: > On Monday 21 October 2002 22:52, WATANABE Hirofumi wrote: > > How about String#scan ? > > That did the trick! This is why I love Ruby, so easy to get stuff done. The > Ruby version is SO much more readable than the Perl too. While I agree, to be fair to Perl, String#scan *in this instance* is equivalent to String#split, which is Perl's split. Of course, String#scan *does* do things that Perl's split can't do, but what you're doing isn't one of them. :) -- The warly race may riches chase, An' riches still may fly them, O; An' tho' at last they catch them fast, Their hearts can ne'er enjoy them, O.