Date: Fri, 03 Nov 2000 03:52:35 -0600 (CST) From: Don Read <dread@texas.net> To: 8773836928@skytel.com Cc: freebsd-questions@FreeBSD.ORG Subject: RE: vi question Message-ID: <XFMail.001103035235.dread@texas.net> In-Reply-To: <200011014727.589586540@skytel.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <snip> =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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?XFMail.001103035235.dread>