Path: utzoo!attcan!uunet!lll-winken!decwrl!ucbvax!agate!sunkist!raymond From: raymond@sunkist.berkeley.edu (Raymond Chen) Newsgroups: comp.lang.perl Subject: Re: "MOST COMMON NOVICE BUG" contest Message-ID: <1990Mar26.162037.9822@agate.berkeley.edu> Date: 26 Mar 90 16:20:37 GMT References: <15230@bfmny0.UU.NET> <15232@bfmny0.UU.NET> Sender: usenet@agate.berkeley.edu (USENET Administrator;;;;ZU44) Reply-To: raymond@sunkist.UUCP (Raymond Chen) Organization: U.C. Berkeley Lines: 27 My vote goes to converting while (condition) { .... next if condition; .... } into do { .... next if condition; .... } while (condition); According to The Great Larry (Book 3, Chapter 6, Verses 10 and 11.) (... Note also that the loop control commands described later will NOT work in this construct, since modifiers don't take loop labels. Sorry.) Not as sorry as we are for missing that parenthetical... $_='x"Not ";"x\"another \";\'x\\"perl \\";x\\"hacker,\\"\'"';s/x/print/g;eval eval eval; -- raymond@math.berkeley.edu Maintainer of the csip Frequently Asked Questions