From: David Douthitt Date: 2002-08-29T07:07:48+09:00 Subject: next statement This is a MIME message. If you are reading this text, you may want to consider changing to a mail reader or gateway that understands how to properly handle MIME multipart messages. ----=_NextPart_ST_16_40_53_Wednesday_August_28_2002_5844 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable I thought there was a way to use "next" (or similar) to escape an arbitrary= number of loops. Akin to this: list.each { |entry| list2.each { |entry2| next 2 if true } } However, when I tried this I got: mycode:###: parse error next 2 if true ^ I can't find anything at rubycentral on this - including the FAQ, the Book,= and the Library Ref. David Douthitt CUNA & Affiliates UNIX Systems Administrator ddouthitt@cuna.coop ----=_NextPart_ST_16_40_53_Wednesday_August_28_2002_5844 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
I thought there was a way to use "= next" (or=20 similar) to escape an arbitrary number of loops.  Akin to=20 this:
 
list.each { |entry|
    list2.each { |entry2|
     &nbs= p; =20 next 2 if true
    }
}
 
However, when I tried this I=20 got:
 
mycode:###: parse error
      nex= t 2 if=20 true
           = =20 ^
 
I can't find anything at rubycentr= al on=20 this - including the FAQ, the Book, and the Library Ref.
 
 
David Douthitt
CUNA & Affiliates
UNIX Systems Administrator<= BR>ddouthitt@cuna.coop
 
 
----=_NextPart_ST_16_40_53_Wednesday_August_28_2002_5844--