Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: What is the easy way to comment out chunk of Perl Code

by holli (Abbot)
on Nov 20, 2005 at 09:23 UTC ( [id://510224]=note: print w/replies, xml ) Need Help??


in reply to What is the easy way to comment out chunk of Perl Code

Every decent Editor supports Regular Expression Search & Replace. So you can simply mark all lines you want to comment out and replace "^" by "#".
To remove the comments replace "^#" by "".
That way one can also uncomment parts of the outcommented code again without ending up in a mess of "pseudo comment blocks".


holli, /regexed monk/

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (4)
As of 2024-04-16 17:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found