From owner-freebsd-questions Fri Nov 3 1:53:43 2000 Delivered-To: freebsd-questions@freebsd.org Received: from mw5.texas.net (mw5.texas.net [206.127.30.15]) by hub.freebsd.org (Postfix) with ESMTP id C506937B4D7 for ; Fri, 3 Nov 2000 01:53:39 -0800 (PST) Received: from localhost.texas.net (tcnet02-34.austin.texas.net [209.99.40.97]) by mw5.texas.net (2.4/2.4) with ESMTP id DAA13064; Fri, 3 Nov 2000 03:53:36 -0600 (CST) Received: (from dread@localhost) by localhost.texas.net (8.9.3/8.9.3) id DAA00768; Fri, 3 Nov 2000 03:53:34 -0600 (CST) (envelope-from dread) Message-ID: X-Mailer: XFMail 1.4.0 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <200011014727.589586540@skytel.com> Date: Fri, 03 Nov 2000 03:52:35 -0600 (CST) From: Don Read To: 8773836928@skytel.com Subject: RE: vi question Cc: freebsd-questions@FreeBSD.ORG Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On 01-Nov-00 8773836928@skytel.com wrote: > Hello, > > I have been editing some > Perl scripts in vi recently, > and I find it very annoying > that Perl cannot comment > blocks of code, only lines. > localhost.dread$ perldoc -q comment =head2 How can I comment out a large block of perl code? Use embedded POD to discard it: # program is here =for nobody This paragraph is commented out # program continues =begin comment text all of this stuff here will be ignored by everyone =end comment text =cut This can't go just anywhere. You have to put a pod directive where the parser is expecting a new statement, not just in the middle of an expression or some other arbitrary yacc grammar production. > P.S. Please cc: me, as I am not subscribed to the list with this > account. Thanks again. > No doubt, looks like a pager ... no jpegs ? pity. Regards, -- Don Read dread@texas.net There are old sailors, and there are foolish sailors; but damn few old foolish sailors. --------------------------------------------- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message