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
: 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
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
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
= 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
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
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
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
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
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:
田口 浩 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
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
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
13 matches
Mail list logo