At 03:25 PM 2/3/2007 +0900, =?iso-2022-jp?B?GyRCRUQ4fRsoQiAbJEI5QBsoQg==?= wrote: >The code below is in the Camel book, and I like this style. >Anyone knows the name of this style or there is no such a name? > >---------------------------- >if (/^abc/) { $abc = 1 } >elsif (/^def/) { $def = 1 } >elsif (/^xyz/) { $xyz = 1 } >else { $nothing = 1 } >----------------------------
I'm not big on naming things, not like I can remember names anyway. But give me the craziest most complicated code block and that I can remember. It does remind me of a case statement though. I would call it an if-case block. Wait, henceforth this style of if block shall be known as the Taguchi-ryuu! :) (Personally I can't stand the K&R style) -- REMEMBER THE WORLD TRADE CENTER ---=< WTC 911 >=-- "...ne cede malis" 00000100 _______________________________________________ Perl-Win32-Users mailing list Perl-Win32-Users@listserv.ActiveState.com To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs