Skip to content

[doc] perldoc misses a single =pod #21688

@jidanni

Description

@jidanni

perlpod says

  "=pod"
      The "=pod" command by itself doesn't do much of  anything,  but  it
     signals  to Perl (and Pod formatters) that a Pod block starts here.
     A Pod block starts with any command paragraph, so a "=pod"  command
     is  usually  used  just  when you want to start a Pod block with an
$ cat e.pl
=pod

bla

=cut
$ podchecker e.pl
e.pl pod syntax OK.
$ touch f.pl
$ podchecker f.pl
$ f.pl does not contain any pod commands.
$ perldoc e.pl
No documentation found for "/tmp/e.pl".

One needs e.g., a =head1 to wake perldoc up that there are =pod's on
the page. Then is prints them all like it should. Even the ones before
the =head1.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions