in reply to Re^2: Comment blocks & private methods
in thread Comment blocks & private methods
Except to parse comments correctly you have to parse perl, because knowing where a string (or string-like anything) starts and ends is really complicated (there are so many ways to start a string in perl that can be nested into each other that you have to parse the whole file correctly to be sure wether one part is code or a string), you wouldn't want your parser to change: "You can also use C-like comments: /* */" into "You can also use C-like comments: " or /\/*\*// # yup, good coding style into /\/ # that works just fine.
I didn't have that point in mind when I wrote my comment though.
Edit: in the end yes, POD may actually be the best idea. My bad :D
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Comment blocks & private methods
by LanX (Saint) on Dec 12, 2014 at 16:50 UTC | |
by Eily (Monsignor) on Dec 12, 2014 at 17:04 UTC | |
by LanX (Saint) on Dec 12, 2014 at 17:15 UTC | |
by MidLifeXis (Monsignor) on Dec 16, 2014 at 15:21 UTC | |
by LanX (Saint) on Dec 16, 2014 at 16:45 UTC |