Subject: | pod2usage() changes formatting |
Date: | Sat, 14 Feb 2015 00:18:27 GMT |
To: | bug-Pod-Usage [...] rt.cpan.org |
From: | karl [...] freefriends.org (Karl Berry) |
Here's my third and last (known for now :) and simplest report regarding
pod2usage(). Test program:
--------------------------------------------------
#!/usr/bin/env perl
use Pod::Usage;
pod2usage(-exitstatus => 0, -verbose => 0);
1;
__END__
=head1 SYNOPSIS
trypodi - pod sections usage test
--------------------------------------------------
gives me this unexpected output, with the =head1 title being ucfirst-ed
and a colon added.
--------------------------------------------------
Synopsis:
trypodi - pod sections usage test
--------------------------------------------------
I expected
SYNOPSIS
trypodi - pod sections usage test
since I see nothing in the doc about altering the formatting of the
section titles. Maybe I just missed it.
I get the same ucfirst:ed result with -verbose => 1 and -verbose => 99.
With -verbose => 2, I get the expected all-caps result.
This was on i686-linux with perl 5.20.1, compiled (with gcc 4.9.2) and
installed from the original source; Pod/Usage.pm has $VERSION='1.63'.
I tried a variety of older Perl versions, both distro-supplied and my
compilations, with the same results (or, if old enough, -sections is not
supported).
Of course I'm happy to supply more information or help debug in any way
I can, etc. Thanks for all your work.
Karl (karl@freefriends.org)