http://www.perlmonks.org?node_id=304465


in reply to Block commenting

You can use POD to comment out large blocks.

=begin comment code to comment out goes here.... =cut

Replies are listed 'Best First'.
Re: Block commenting
by Abigail-II (Bishop) on Nov 04, 2003 at 17:10 UTC
    Unless the blocks themselves contain POD. Or a here document or string with \n=cut\s in it.

    Abigail

Re: Re: Block commenting
by sweetblood (Prior) on Nov 04, 2003 at 17:19 UTC
    I believe this is what I've seen ... Thanks!
      I also use POD to comment out blocks of code. I also never leave those blocks in for long (or at least strive not to). One trick i learned from merlyn is to be descriptive with the POD and use something like:
      =for comment blah blah blah =cut
      But you are still going to interfere with any real POD your code contains - which is why i strive to remove unneeded code ASAP and let CVS handle the history (but i still leave phantom code from time out of false laziness).

      jeffa

      L-LL-L--L-LL-L--L-LL-L--
      -R--R-RR-R--R-RR-R--R-RR
      B--B--B--B--B--B--B--B--
      H---H---H---H---H---H---
      (the triplet paradiddle with high-hat)