pod2usage verbose problem

J

Joshua Eliason

hi,
i cannot get pod2usage to produce the associated output for verbose
levels 0 or 1 from the embedded pod. it prints nothing for verbose
level 0 and 1. verbose level 2 does produce a man page output though.
how can i get pod2uage to output the embedded pod info for verbose
level 0 and 1? i tested, and got the same problem, on cygwin with perl
5.8 and linux using perl 5.6. thanks in advance for any help.

josh


here's the script i tested:

#!/usr/bin/perl -w

use strict;
use Pod::Usage;

pod2usage(-verbose => 1);

__END__

=pod

=head1 NAME

podtest - test pod output using pod2usage

=head1 SYNOPSIS

B<podtest> [B<--help>] [B<--man>]

=head1 OPTIONS

=over 8

=item B<--help>

Print a brief help message and exits.

=item B<--man>

Prints the manual page and exits.

=back

=head1 DESCRIPTION

B<podtest> tests pod output using pod2usage.

=cut
 
J

James Willmore

i cannot get pod2usage to produce the associated output for verbose
levels 0 or 1 from the embedded pod. it prints nothing for verbose
level 0 and 1. verbose level 2 does produce a man page output
though. how can i get pod2uage to output the embedded pod info for
verbose level 0 and 1? i tested, and got the same problem, on cygwin
with perl 5.8 and linux using perl 5.6. thanks in advance for any
help.

Nothing!?! I ran the script and it worked as expected with no
modification to the code you provided. (I know -that's not what you
wanted to hear, but it is the truth - sorry).

I'm thinking it won't hurt anything to re-install the module again. I
used CPAN to install what's on my system. If you used the same
approach, you may want to use ye old 'by hand' method (perl
Makefile.PL;make;make test;make install.). The issue MAY reside with
the install of the module -or- perhaps the version of the module
(version on my system is 1.16). Make sure you keep an eye on the make
test portion to see if everything tested okay.

HTH

Jim
 
S

Sam Denton

hi,
i cannot get pod2usage to produce the associated output for verbose
levels 0 or 1 from the embedded pod. it prints nothing for verbose
level 0 and 1. verbose level 2 does produce a man page output though.
how can i get pod2uage to output the embedded pod info for verbose
level 0 and 1? i tested, and got the same problem, on cygwin with perl
5.8 and linux using perl 5.6. thanks in advance for any help.


I'm seeing the same problem, Josh. I note that within pod2usage, a
verbosity of 2 causes "system('perldoc', ...)" to be run, while lesser
verbosities don't. It also appears that Pod::Usage's
preprocess_paragraph method is NOT getting called.

Here's some relevant info about my set-up:

$ mount
C:\Documents and Settings on /home type system (binmode)
C:\cygwin\bin on /usr/bin type system (binmode)
C:\cygwin\lib on /usr/lib type system (binmode)
C:\cygwin on / type system (binmode)
c: on /cygdrive/c type user (binmode,noumount)
d: on /cygdrive/d type user (binmode,noumount)

$ perl -v
This is perl, v5.8.0 built for cygwin-multi-64int
[...]

$ cygcheck -V
cygcheck version 1.32
[...]
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,819
Latest member
masterdaster

Latest Threads

Top