MESSAGE
DATE | 2004-11-20 |
FROM | Billy
|
SUBJECT | Re: [hangout] Perl vs. PHP
|
From owner-hangouts-destenys-at-mrbrklyn.com Sat Nov 20 21:38:26 2004 X-UIDL: RLT!!VQ<"!nEY"!\&E!! Received: from www2.mrbrklyn.com (localhost [127.0.0.1]) by mrbrklyn.com (8.12.11/8.11.2/SuSE Linux 8.11.1-0.5) with ESMTP id iAL2cQaQ003902 for ; Sat, 20 Nov 2004 21:38:26 -0500 Received: (from mdom-at-localhost) by www2.mrbrklyn.com (8.12.11/8.12.3/Submit) id iAL2cPu5003901 for hangouts-destenys; Sat, 20 Nov 2004 21:38:25 -0500 X-Authentication-Warning: www2.mrbrklyn.com: mdom set sender to owner-hangouts-at-www2.mrbrklyn.com using -f Received: from mail.dadadada.net (MAIL.DADADADA.NET [209.48.2.106]) by mrbrklyn.com (8.12.11/8.11.2/SuSE Linux 8.11.1-0.5) with ESMTP id iAL2cLJk003892; Sat, 20 Nov 2004 21:38:22 -0500 Received: from 24-90-83-25.nyc.rr.com ([24.90.83.25] helo=[192.168.3.102]) by mail.dadadada.net with esmtp (Exim 3.35 #1 (Debian)) id 1CVhev-0001hS-00; Sat, 20 Nov 2004 21:41:01 -0500 Message-ID: <419FFF7A.9040207-at-dadadada.net> Date: Sat, 20 Nov 2004 21:37:46 -0500 From: Billy User-Agent: Mozilla Thunderbird 0.9 (Windows/20041103) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Ruben Safir Secretary NYLXS CC: hangout-at-nylxs.com Subject: Re: [hangout] Perl vs. PHP References: <200411192324.13032.sderrick-at-optonline.net> <20041120002945.GA11386-at-www2.mrbrklyn.com> <20041120120315.M12445-at-mrbrklyn.com> <20041120202757.A7940-at-bsd1.nyct.net> <419FF5C4.9060100-at-dadadada.net> <1101003675.30671.4.camel-at-flatbush.mrbrklyn.com> <419FFB7B.4000001-at-dadadada.net> <20041121022817.GA3479-at-www2.mrbrklyn.com> In-Reply-To: <20041121022817.GA3479-at-www2.mrbrklyn.com> X-Enigmail-Version: 0.86.0.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-hangouts-at-mrbrklyn.com Precedence: bulk Reply-To: Billy List: New Yorker GNU Linux Scene Admin: To unsubscribe send unsubscribe name-at-domian.com in the body to hangout-request-at-www2.mrbrklyn.com X-Spam-Checker-Version: SpamAssassin 3.0.0 (2004-09-13) on www2.mrbrklyn.com X-Spam-Status: No, score=-2.6 required=4.0 tests=BAYES_00 autolearn=ham version=3.0.0 X-Spam-Level: X-Keywords: X-UID: 39242 Status: RO Content-Length: 967 Lines: 38
Ruben Safir Secretary NYLXS wrote:
>>that is NOT THE SAME THING! >>if $var matches blah and blah2, you're going >>to execute sub1, sub2, and sub3. In a switch >>statement, you only want ONE of these to happen. >> >> > > >BTW - what is the C standard for a switch???? > >Why do you need that break? > > Like I thought... >
The C switch will evaluate the expression (once), and jump to a case that matches the expr. The case usually ends in a break, but it doesn't have to. Other case statements can be sprinkled in the code block.
The break is almost always there. So I used it in my example.
Okay, sometimes it isn't there, and you get lovely features like the phone system crash of 1991-01-15.
What's the Perl alternative to that behavior? You haven't offered one. 'last' is Perl's 'break'.
____________________________ NYLXS: New Yorker Free Software Users Scene Fair Use - because it's either fair use or useless.... NYLXS is a trademark of NYLXS, Inc
|
|