Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Block commenting

by duct_tape (Hermit)
on Nov 04, 2003 at 16:29 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://304465]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (6)
As of 2024-03-29 01:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found