MESSAGE
DATE | 2004-11-20 |
FROM | Billy
|
SUBJECT | Re: [hangout] Perl vs. PHP
|
Contrarian wrote:
> > On another forum, one person laments that he/she started >to learn Perl and not PHP. I suspect that he/she picked the >right language, but I know really nothing about PHP. > > The immediate context was the (current) lack of a >case/switch construct in Perl... about which I never understood >why it is such a big deal. > > 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 }; } ____________________________ NYLXS: New Yorker Free Software Users Scene Fair Use - because it's either fair use or useless.... NYLXS is a trademark of NYLXS, Inc
|
|