The stupid question is the question not asked | |
PerlMonks |
Re^10: POD Meditation?by LanX (Saint) |
on Apr 29, 2012 at 11:07 UTC ( [id://967924]=note: print w/replies, xml ) | Need Help?? |
Saying "POD parsers are stupid" implies somehow "They could be different". This will never happen, because: 1. "Only Perl can parse Perl". It's very unlikely that POD parsing will ever be included into the Perl parser, to fix what you consider a bug. Hence we get a similar situation "Only POD can parse POD". 2. Even if the OP's code case was ... let's say "broken" POD ... by Larry's original intention (which I can't clearly read from the cited "specifications"), we have a de facto standard now. Too many people rely their applications on the simple but efficient parsing logic of POD parsers and nobody will ever dare to deprecate what you consider to be wrong. (Another example of a "misuse" effectively becoming standard is the tolerance regarding empty lines surrounding =statements. Nobody will ever be able to enforce the original rules here so we have to accept the new standard.) Is my point clearer now?
Cheers Rolf UPDATE: Last but not least. 3. The possibility to have "dual" code evaluated by both parsers is a genius possibility to produce documentation in a DRY way, most people won't ever want to miss again.
In Section
Seekers of Perl Wisdom
|
|