in reply to Removing Comments
If it starts with #!, leave it alone. If the line starts with a #, its a comment so delete it. If you find a # elsewhere, and is preceded by a ; (possibly with whitespace in between), hack off the end of the line. That should take care of 99% of your problems.
I'd write it up, but I'm not at home now and don't have access to perl to test, so I won't confuse with bad code. Maybe I'll drop back in and write it tomorrow though....
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Removing Comments
by Adam (Vicar) on Jan 13, 2001 at 08:29 UTC | |
|
Re: Re: Removing Comments
by IcyHot (Novice) on Jul 17, 2001 at 22:38 UTC |