MESSAGE
DATE | 2004-11-20 |
FROM | Contrarian
|
SUBJECT | Re: [hangout] Perl vs. PHP
|
From owner-hangouts-destenys-at-mrbrklyn.com Sat Nov 20 22:38:11 2004 X-UIDL: >2f"!(ip!!QJh"!k8d!! 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 iAL3cBoo005177 for ; Sat, 20 Nov 2004 22:38:11 -0500 Received: (from mdom-at-localhost) by www2.mrbrklyn.com (8.12.11/8.12.3/Submit) id iAL3cAp5005176 for hangouts-destenys; Sat, 20 Nov 2004 22:38:10 -0500 X-Authentication-Warning: www2.mrbrklyn.com: mdom set sender to owner-hangouts-at-www2.mrbrklyn.com using -f Received: from bsd4.nyct.net (mail-out.nyct.net [216.139.141.2]) by mrbrklyn.com (8.12.11/8.11.2/SuSE Linux 8.11.1-0.5) with ESMTP id iAL3cAfa005171 for ; Sat, 20 Nov 2004 22:38:10 -0500 Received: from bsd1.nyct.net (bsd1.nyct.net [216.139.147.7]) by bsd4.nyct.net (8.12.11/8.12.11) with ESMTP id iAL3c8vD055718 for ; Sat, 20 Nov 2004 22:38:08 -0500 (EST) (envelope-from adrba-at-nyct.net) Received: from localhost (adrba-at-localhost) by bsd1.nyct.net (8.12.8/8.12.8/Submit) with ESMTP id iAL3c8lX015282 for ; Sat, 20 Nov 2004 22:38:08 -0500 (EST) X-Authentication-Warning: bsd1.nyct.net: adrba owned process doing -bs Date: Sat, 20 Nov 2004 22:38:08 -0500 (EST) From: Contrarian To: hangout-at-nylxs.com Subject: Re: [hangout] Perl vs. PHP In-Reply-To: <419FF5C4.9060100-at-dadadada.net> Message-ID: <20041120223602.R15073-at-bsd1.nyct.net> 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> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-hangouts-at-mrbrklyn.com Precedence: bulk Reply-To: Contrarian 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: 39234 Status: RO Content-Length: 763 Lines: 27
> That's my least favorite Perl feature. They give you this as a > consolation prize:
non-feature rather. I hear rumors that Perl 6 will have something of the sort.
> 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 }; > }
All the case/switch constructs I recall are quite limited, if 'a', if 'b' etc. So since if one needs to do the if elsif elsif else (or if, else if, else if, else) for more complex conditions I don't quite understand the fuss.
____________________________ NYLXS: New Yorker Free Software Users Scene Fair Use - because it's either fair use or useless.... NYLXS is a trademark of NYLXS, Inc
|
|