Think about Loose Coupling | |
PerlMonks |
Re: What is the easy way to comment out chunk of Perl Codeby holli (Abbot) |
on Nov 20, 2005 at 09:23 UTC ( [id://510224]=note: print w/replies, xml ) | Need Help?? |
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/
In Section
Seekers of Perl Wisdom
|
|