It's not trivial to parse Perl even for a skilled programmer!
e.g. regarding comments, you have to handle # delimiters and # in strings
$a="/#/"; $a=~ s#/##g;
(update) and these are only simple cases, even perltidy and PPI can fail in pathological cases. For a detailed discussion search for perl static parsing!
Cheers Rolf
In reply to Re^2: Stripping Comments from Source
by LanX
in thread Stripping Comments from Source
by Kob
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |