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 using

Re: Name of IF style

2007-02-05 Thread Huub Peters
: Foo JH [EMAIL PROTECTED] To: Bill Luebkert [EMAIL PROTECTED] Cc: perl-win32-users@listserv.ActiveState.com 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 block

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 no

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 using

RE: Name of IF style

2007-02-05 Thread 田口 浩
= 1 } 07 # elsif (/^w34/) { $w34 = 1 } 08 else { $nothing = 1 } 09 } 10 } -- Regards, -Original Message- From: [EMAIL PROTECTED] Subject: Re: Name of IF style My way of fast commenting code in UE: - Select the code

Re: Name of IF style

2007-02-05 Thread Foo JH
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 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

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

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 KR 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

Re: Name of IF style

2007-02-04 Thread Foo JH
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 { $nothing = 1

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 following:

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 { $nothing = 1

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 } elsif

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