Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Block commenting

by duct_tape (Hermit)
on Nov 04, 2003 at 16:29 UTC ( #304465=note: print w/replies, xml ) Need Help??


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)
      

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://304465]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (8)
As of 2019-09-19 16:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    The room is dark, and your next move is ...












    Results (249 votes). Check out past polls.

    Notices?