in vi there's always

                :.,+100s/^/# /

but if your editor doesn't have legacy command line editing capability, a decent
way to comment out a block of syntactically correct perl code is to
enclose it in

            if(0){
                   ...
             };

another possibility is to enclose it in a HEREIS block

             <<COMMENT;
              ...
              ...
              COMMENT

if you're not comfortable with the "constant in void" warning that produces,
you can make it appear to the parser to do something, like so

             sub IgnoreThis($){0};
              ...

             IgnoreThis <<COMMENT;
              ...
              ...
              COMMENT

There's also Acme::Comment, on CPAN, which uses a source filter to
emulate all commentting styles known (or made known) to the author.



On Tue, 22 Mar 2005 20:24:24 -0800 (PST), Eko Budiharto
<[EMAIL PROTECTED]> wrote:
> how do I, like,  comment out 100 lines or more?

-- 
David L Nicol
"You don't know how to maintain a station wagon either!"
_______________________________________________
ActivePerl mailing list
ActivePerl@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to