Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!bcm!convex!usenet From: tchrist@convex.COM (Tom Christiansen) Newsgroups: comp.lang.perl Subject: Re: Do be do be do. Message-ID: <1991Feb04.015138.28575@convex.com> Date: 4 Feb 91 01:51:38 GMT References: <1991Feb4.012916.7944@uvaarpa.Virginia.EDU> Sender: usenet@convex.com (news access account) Reply-To: tchrist@convex.COM (Tom Christiansen) Organization: CONVEX Software Development, Richardson, TX Lines: 29 Nntp-Posting-Host: pixel.convex.com From the keyboard of marc@mit.edu: :I was under the impression that : : &foo() while $bar; : :was just a sugar for : : while ($bar) { : &foo(); : } : :If not, what are the rules? (Feel free to cite page numbers. I got :my Book :-) It's in the section entitled ``Simple Statements'' in both the man page and the Camel Book (see the top of page 94). The essential text follows: The loop conditional is evaluation before the expression, except when applied to a do-BLOCK or a do_SUBROUTINE command, in which case the block executes once before the conditional is evaluated. More details follow. Check it out. --tom -- "Still waiting to read alt.fan.dan-bernstein using DBWM, Dan's own AI window manager, which argues with you 10 weeks before resizing your window." ### And now for the question of the month: How do you spell relief? Answer: U=brnstnd@kramden.acf.nyu.edu; echo "/From: $U/h:j" >>~/News/KILL; expire -f $U