Skip Menu |
 

This queue is for tickets about the PAR CPAN distribution.

Report information
The Basics
Id: 11502
Status: stalled
Priority: 0/
Queue: PAR

People
Owner: Nobody in particular
Requestors: steve.hay [...] uk.radan.com
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.87
Fixed in: (no value)



Subject: pp -f ... breaks Pod::Usage
Download (untitled) / with headers
text/plain 593b
CPAN RT #5302 fixed a problem with using pp on a script that uses Pod::Usage. However, I now find that I have a similar problem if the script is "filtered" in any way with the "-f" option. For example, put this into test.pl: use Pod::Usage; pod2usage(-verbose => 0) __END__ =head1 SYNOPSIS pod2usage Now run "pp -o test.exe -f Bleach test.pl" and then run "test.exe". It produces no output. I've found the same results using other filters. In each case, the filter modules work fine with scripts that aren't using Pod::Usage. Configuration: WinXP, VC++ 6.0, perl-5.8.6, PAR-0.87.
Download (untitled) / with headers
text/plain 615b
Hi, sorry for the late reply. In https://rt.cpan.org/Ticket/Display.html?id=11502 you report a problem with PAR filters and Pod::Usage. I cannot think of a way to alleviate this. For example when Acme::Bleach is used, the filtered script will be mainly whitespace. The filter has also "bleached" the POD section which now cannot be read by Pod::Usage. This applies to all filters that touch the POD section. Possibly, one could write a filter that strips out POD before any other filter is applied and then reinserts the POD after all filters have been processed. This might break just as well, though. Steffen


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.