in reply to Perl equivalent of C-style
The script runs through your file looking for a start comment delimiter. When it finds one, it puts a '#' in front of it, then one at the start of each subsequent line until an end comment delimiter is found. The remove block comment script does the opposite.
There are a few other issues to solve, such as having an end delimiter in the middle of a line of code, or a line of code that was already commented before you ran the block comment script, but there are ways around these issues.
I just made this up this morning. It's still too early for me to tell if this is a good idea or just something really silly. :-)
Phemur
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Perl equivalent of C-style
by Anonymous Monk on May 27, 2002 at 12:43 UTC |