Re: Pod::Simple can treat binary as pod due to liberal/inconsistent regexp patterns
[email protected] (Randy Stauner) Thu, 8 Jan 2015 11:17:18 -0700
| Newsgroups | perl.pod-people |
|---|---|
| Message-ID | <CAAbMhooHu1RQpzODrZ6WPEOTBfWQqCWq_AL+SwYN6Q-fFjOyPA@mail.gmail.com> |
> > > 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 > > Oh. Can someone dig into the Perl parser and confirm this? > > > I think POD parsers should do the same. > > My suspicion is that, even if that’s true, the Parser ignores everything > in a __DATA__ or __END__ block. Here is an example I worked up when writing test for metacpan: Everything after __DATA__ is data, but the pod parser will also find pod if it's there https://gist.github.com/rwstauner/98f97e6cd64c972d9b71