Re: Name of IF style

2007-02-05 Thread Foo JH
David, Thanks also for the tip. Now I am doubly noob... > - UEdit column comment > select your code to comment > ALT+C (column edit) > type # and spaces as you like it > > ++ > David "Sniper" Rigaudiere > > > ___ > Perl-Win32-Users mailing list > Perl-W

Re: Name of IF style

2007-02-05 Thread Foo JH
> To: "Bill Luebkert" <[EMAIL PROTECTED]> > Cc: > Sent: Monday, February 05, 2007 12:18 PM > Subject: Re: Name of IF style > > >> >>> There are other ways to block out code in Perl. Personally, I use >>> a vim macro and just comment out the bl

RE: Name of IF style

2007-02-05 Thread 田口 浩
(/^xyz/) { $xyz = 1 } 06 # elsif (/^w12/) { $w12 = 1 } 07 # elsif (/^w34/) { $w34 = 1 } 08 else { $nothing = 1 } 09 } 10 } -- Regards, > -Original Message- > From: [EMAIL PROTECTED] > Subject: Re: Name of

Re: Name of IF style

2007-02-05 Thread David 'Sniper' Rigaudiere
>> There are other ways to block out code in Perl. Personally, I use >> a vim macro and just comment out the block by marking the first line >> (type ma [mark 'a' position]) and going to the last line and executing >> the macro by hitting the key you have it bound to (I use #) >> > Lucky you. I am

Re: Name of IF style

2007-02-05 Thread Chris Wagner
A way I like to use to "comment out" code chunks is by turning them into string literals. Type an aposotrophe at the beginning of the code block and then another '; at the end of the block and everything in between is now a string literal called in void context. Just have to make sure there are n

Re: Name of IF style

2007-02-05 Thread Huub Peters
Message - From: "Foo JH" <[EMAIL PROTECTED]> To: "Bill Luebkert" <[EMAIL PROTECTED]> Cc: Sent: Monday, February 05, 2007 12:18 PM Subject: Re: Name of IF style > >> There are other ways to block out code in Perl. Personally, I use >> a

Re: Name of IF style

2007-02-05 Thread Foo JH
> There are other ways to block out code in Perl. Personally, I use > a vim macro and just comment out the block by marking the first line > (type ma [mark 'a' position]) and going to the last line and executing > the macro by hitting the key you have it bound to (I use #) > Lucky you. I am us

Re: Name of IF style

2007-02-04 Thread Bill Luebkert
Foo JH wrote: > Taguchi san, > > I like the coding style below for one main reason: it's easy to comment > out if needed. No easier than any other method - other than it's compressed into fewer lines - which also makes it less easily modified. > IMHO good coding style should support the followi

Re: Name of IF style

2007-02-04 Thread Foo JH
Taguchi san, I like the coding style below for one main reason: it's easy to comment out if needed. IMHO good coding style should support the following: 1. Easy to read. Puristic styles are a matter of opinion. I prefer to maintain a hybrid concept between K&R, BSD, and none-of-the-above; choo

RE: Name of IF style

2007-02-04 Thread 田口 浩
Thanks for replies. This type of style should be named for the first creator or first teller to have firstly reffered to it, like K&R or Allman. I made a silly script to find the first writer... By my script the first person is M[irs]+. eagle. C:\>FFIND_IF.pl > FFIF.log C:/Perl/lib/CPAN.pm C:/Pe

Re: Name of IF style

2007-02-03 Thread Chris Wagner
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 } >

Re: Name of IF style

2007-02-03 Thread Bill Luebkert
田口 浩 wrote: > Hello, > > 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 { $not

Name of IF style

2007-02-02 Thread 田口 浩
Hello, 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 } -