MESSAGE
DATE | 2004-11-20 |
FROM | Billy
|
SUBJECT | Re: [hangout] Perl vs. PHP
|
From owner-hangouts-destenys-at-mrbrklyn.com Sat Nov 20 21:21:22 2004 X-UIDL: A#D"!MQ)!!f)b!!)3##! 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 iAL2LMDk003206 for ; Sat, 20 Nov 2004 21:21:22 -0500 Received: (from mdom-at-localhost) by www2.mrbrklyn.com (8.12.11/8.12.3/Submit) id iAL2LM4s003205 for hangouts-destenys; Sat, 20 Nov 2004 21:21:22 -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 iAL2LJVw003196; Sat, 20 Nov 2004 21:21:19 -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 1CVhOQ-0001U1-00; Sat, 20 Nov 2004 21:23:58 -0500 Message-ID: <419FFB7B.4000001-at-dadadada.net> Date: Sat, 20 Nov 2004 21:20:43 -0500 From: Billy User-Agent: Mozilla Thunderbird 0.9 (Windows/20041103) X-Accept-Language: en-us, en MIME-Version: 1.0 To: ruben-at-mrbrklyn.com 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> In-Reply-To: <1101003675.30671.4.camel-at-flatbush.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=AWL,BAYES_00 autolearn=ham version=3.0.0 X-Spam-Level: X-Keywords: X-UID: 39255 Status: RO X-Status: A Content-Length: 810 Lines: 36
Ruben Safir wrote:
>>That's my least favorite Perl feature. They give you this as a >>consolation prize: >> >>for($var){ >> /foo/ and do { stuff; last }; >> /bar/ and do { barstuff; last }; >> /bat/ and do { batstuff; last }; >> /baz/ and do { bazstuff; last }; >>do { defaultstuff; last }; >>} >> > >No > >sub1 if ($var =~ blah ); >sub2 if ($var =~ blah2); >sub3 if (var =~ blah2); > > >And there is a zillion other ways. > >Even hook up a sub ref to a hash. > 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.
____________________________ NYLXS: New Yorker Free Software Users Scene Fair Use - because it's either fair use or useless.... NYLXS is a trademark of NYLXS, Inc
|
|