in reply to Re: Stripping Comments from Source
in thread Stripping Comments from Source
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Stripping Comments from Source
by AnomalousMonk (Archbishop) on May 12, 2010 at 15:37 UTC | |
by LanX (Saint) on May 12, 2010 at 16:02 UTC | |
by bart (Canon) on May 13, 2010 at 12:44 UTC | |
by LanX (Saint) on May 13, 2010 at 12:55 UTC | |
by AnomalousMonk (Archbishop) on May 12, 2010 at 19:36 UTC | |
|
Re^3: Stripping Comments from Source
by mzedeler (Pilgrim) on May 13, 2010 at 11:56 UTC | |
|
Re^3: Stripping Comments from Source
by ambrus (Abbot) on May 14, 2010 at 10:40 UTC |