Skip Menu |

This queue is for tickets about the PodParser CPAN distribution.

Report information
The Basics
Id: 11884
Status: resolved
Worked: 15 min
Priority: 0/
Queue: PodParser

People
Owner: Nobody in particular
Requestors: cpan [...] kevin.lebleu.info
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 1.28
Fixed in: (no value)



Subject: -quiet option doesn't work
I am using Pod::Checker version 1.42, I'm not sure how to check the distribution version. I am using perl v5.8.6 on Cygwin 1.5.12. When I pass the -quiet option to Pod::Checker->new(), it does not suppress errors or warnings, contrary to the documentation. I can reproduce this with: perl -MPod::Checker -e '$podchk = new Pod::Checker(-quiet => 1); print "true\n" if not $podchk->parse_from_file("Any file with POD errors");' Looking at the code, it appears that -quiet will only suppress Pod::Parser warnings and errors, not Pod::Checker warnings or errors. That is not the behavior described in the documentation, nor the behavior I want.
Well spotted! Will be fixed in 1.31. Please note that parse_from_file will not give you the number of errors - just whether the parse had fatal errors or not. POD errors are not fatal here. The following two work in the 1.31-to-be: $ perl -Mblib -MPod::Checker -e 'print "true\n" if not podchecker("t/pod/for.t",undef,-quiet => 1);' true $ perl -Mblib -MPod::Checker -e 'print "true\n" if not podchecker("t/pod/lref.t",undef,-quiet => 1);' first one is OK, second one has POD errors. -Marek