Path: utzoo!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!elroy.jpl.nasa.gov!jpl-devvax!lwall From: lwall@jpl-devvax.jpl.nasa.gov (Larry Wall) Newsgroups: comp.lang.perl Subject: Re: Weird response of "next" inside sub? Message-ID: <1991Mar11.230002.27271@jpl-devvax.jpl.nasa.gov> Date: 11 Mar 91 23:00:02 GMT References: <1991Mar6.172554.14299@iwarp.intel.com> <222@munz.UUCP> <1991Mar09.200039.1484@convex.com> Reply-To: lwall@jpl-devvax.JPL.NASA.GOV (Larry Wall) Organization: Jet Propulsion Laboratory, Pasadena, CA Lines: 14 In article <1991Mar09.200039.1484@convex.com> tchrist@convex.COM (Tom Christiansen) writes: : one answer is that next takes a label as an operand, not a scalar. : as for why this should be so, i dunno -- ask larry. :-) If I allowed "next $label" then I'd also have to allow "goto $label", and I don't think you really want that... :-) Besides, you can always say eval "next $label"; :-) Larry