Subject: | perldoc won't recognize POD without a =headX |
perldoc won't recognize something contains POD unless it sees a =head1 or =head2 or ... line. Even if it contains =pod. This seems a bit silly.
$ cat ~/tmp/test.out
=pod
This is POD!
=cut
$ perldoc -T -t ~/tmp/test.out
No documentation found for "/Users/schwern/tmp/test.out".
$ cat ~/tmp/test.out
=pod
=head1 Foo
This is POD!
=cut
$ perldoc -T -t ~/tmp/test.out
Foo
This is POD!
Note that it will recognize a file ending in .pod as POD. I'm not 100% sure this is in Pod::Simple and in perldoc.
$ cat ~/tmp/test.out
=pod
This is POD!
=cut
$ perldoc -T -t ~/tmp/test.out
No documentation found for "/Users/schwern/tmp/test.out".
$ cat ~/tmp/test.out
=pod
=head1 Foo
This is POD!
=cut
$ perldoc -T -t ~/tmp/test.out
Foo
This is POD!
Note that it will recognize a file ending in .pod as POD. I'm not 100% sure this is in Pod::Simple and in perldoc.