Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!rbj From: rbj@uunet.UU.NET (Root Boy Jim) Newsgroups: comp.lang.perl Subject: Re: Weird response of "next" inside sub? Message-ID: <124820@uunet.UU.NET> Date: 6 Mar 91 21:17:35 GMT References: <1991Mar6.172554.14299@iwarp.intel.com> Organization: UUNET Communications Services, Falls Church, VA Lines: 11 In article <1991Mar6.172554.14299@iwarp.intel.com> merlyn@iwarp.intel.com (Randal L. Schwartz) writes: >Watch this: > >Yow! The next exits the sub and cycles the outer "for" loop! (This >bit me in a program today.) I say leave it in. This is like catch/throw or setjmp/longjmp. As long as the subroutines are cleaned up ok, I'm all for it. -- [rbj@uunet 1] stty sane unknown mode: sane