On Sat, Aug 7, 2021 at 2:45 AM Darren Duncan <darren@darrenduncan.net> wrote: > On 2021-08-06 5:01 p.m., Chris Prather wrote: > >> On Aug 6, 2021, at 2:58 PM, Dan Book <grinnz@gmail.com> wrote: > >> > >> I don't think it's comparable. Comments are parsed by the perl > interpreter, but POD is not, except to find the end of the POD. > > > > Additionally comments don’t as far as I know have a way to declare their > encoding. > > Question: Is there ever a real life scenario where a single source file > is not > entirely the same encoding? Can you reasonably have a single file > containing > Perl code and POD where the Perl code is one character encoding and the > POD is > another one? -- Darren Duncan > Yes. POD parsers and the perl interpreter do not read the same parts of the file, ever. Thus they must each indicate to their corresponding parsers what encoding they contain. -DanThread Previous | Thread Next