Don't feel too bad, the saying goes, "Only perl can parse Perl." To do this sort of thing properly really does require a parser.... or take a look at perltidy, which does a really good job on perl code formatting and also has a switch for stripping comments.
In reply to Re^2: Comment Stripper script for unix
by eserte
in thread Comment Stripper script for unix
by hsinclai
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |