Subject: | pod2usage() -sections omits section with subsection specified |
Date: | Sat, 14 Feb 2015 00:17:49 GMT |
To: | bug-Pod-Usage [...] rt.cpan.org |
From: | karl [...] freefriends.org (Karl Berry) |
Hi Marek or all - (very glad to hear about the fix for #101581, thanks!)
Here's another (smaller issue, I hope) problem report with pod2usage.
Running this small self-contained program, including a little pod
at the end:
--------------------------------------------------
#!/usr/bin/env perl
use Pod::Usage;
pod2usage(-exitstatus => 0, -verbose => 99,
-sections => "NAME|ACTIONS/help", -noperldoc => 1);
1;
__END__
=head1 NAME
trypodi - pod sections usage test
=head1 ACTIONS
Para for actions.
=head2 help
Help text.
--------------------------------------------------
gives me this unexpected output, with the NAME section missing:
--------------------------------------------------
help:
Help text.
--------------------------------------------------
That is, I'm trying to use -sections to select both the NAME section and
the /help/ subsection of ACTIONS. As far as I can tell from the doc
(http://perldoc.perl.org/Pod/Usage.html), this sort of selection is
intended to work.
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)