MESSAGE
DATE | 2004-11-20 |
FROM | Contrarian
|
SUBJECT | Re: [hangout] Perl vs. PHP
|
> 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
|
|