Re: Pod::Simple can treat binary as pod due to liberal/inconsistent regexp patterns

[email protected] ("Marek Rouchal") Thu, 08 Jan 2015 07:18:15 +0100
Newsgroups perl.pod-people
Message-ID <[email protected]>
IIRC the first "liberal" rx is to detect start of POD just like the Perl (language) parser does, i.e. it pauses parsing for instructions until the next =cut
I think POD parsers should do the same. If the matched pod-start sequence does not match any of the known commands, it's an error condition, and we should discuss what to do then, like 
- throw exception 
- print error and/or call error callback
- warn and treat the content as a plain text paragraph

-Marek


Von meinem Samsung Galaxy Smartphone gesendet.


-------- Ursprüngliche Nachricht --------
Von: "David E. Wheeler" <[email protected]> 
Datum:08.01.2015  06:39  (GMT+01:00) 
An: Karl Williamson <[email protected]> 
Cc: Randy Stauner <[email protected]>, [email protected] 
Betreff: Re: Pod::Simple can treat binary as pod due to liberal/inconsistent regexp patterns