On 6/11/07, Michael G Schwern <[EMAIL PROTECTED]> wrote:
Joshua ben Jore wrote:
> It has two benefits. Separating code from pod prevents it from being
> wholely unreadable without syntax highlighting.

<snip>

> The other benefit is you don't spend the CPU parsing that additional
> bit of text. I recall noticing it on some really pod-heavy code.

The former is arguable.  The latter is a commonly held misconception.  Here is
how perl "parses" POD:  when in code it looks for a /^=\w+/ outside of a
statement, everything following is ignored until it hits a /^=cut$/ or eof.
The end.

I think when I'd noticed it I'd been doing it to code that was 2/3
pod. So no, not "the end." Just most of the time. I guess I should
have just not even mentioned that I'd noticed it made a difference for
me if that's what it takes to avoid being told I'm wrong.

Josh

Reply via email to